workflows: update the latest branch conditionally

Since we now run the build three times, we don't want to update the
latest branch unless all three builds complete successfully.
This commit is contained in:
Jordi Gutiérrez Hermoso 2024-06-26 17:02:45 -04:00 committed by jordigh
parent a8431c69a7
commit 1e5cc585a7

View File

@ -107,6 +107,16 @@ jobs:
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
build-contexts: ${{ matrix.image.name != 'grist-oss' && 'ext=ext' || '' }} build-contexts: ${{ matrix.image.name != 'grist-oss' && 'ext=ext' || '' }}
update_latest_branch:
name: Update latest branch
runs-on: ubuntu-latest
needs: push_to_registry
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
ref: ${{ inputs.latest_branch }}
- name: Update latest branch - name: Update latest branch
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1 uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
with: with: