mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:53:23 +00:00
GitHub Actions: build stage 2 of MXE image for correct branch
When triggered by a push event, the checkout action checks out the correct branch. But without this change, the stage 2 action would always run on master. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c2b2f13119
commit
13db505866
2 changed files with 3 additions and 1 deletions
2
.github/workflows/mxe-dockerimage-stage1.yml
vendored
2
.github/workflows/mxe-dockerimage-stage1.yml
vendored
|
@ -46,4 +46,4 @@ jobs:
|
|||
-H "Accept: application/vnd.github.everest-preview+json" \
|
||||
-H "Content-Type: application/json" \
|
||||
https://api.github.com/repos/subsurface-divelog/subsurface/dispatches \
|
||||
--data '{"event_type": "${{ env.VERSION }}" }'
|
||||
--data '{"event_type": "${{ env.VERSION }}", "client_payload": { "target_branch": "${{ github.ref }}" } }'
|
||||
|
|
2
.github/workflows/mxe-dockerimage-stage2.yml
vendored
2
.github/workflows/mxe-dockerimage-stage2.yml
vendored
|
@ -12,6 +12,8 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
ref: ${{ github.event.client_payload.target_branch }}
|
||||
|
||||
# Grab the version from the event name that we were triggered by and add ".stage1" to find the docker image to start FROM
|
||||
# And create the NAME of the final docker image
|
||||
|
|
Loading…
Add table
Reference in a new issue