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.
pull/1070/head
Jordi Gutiérrez Hermoso 3 months ago committed by jordigh
parent a8431c69a7
commit 1e5cc585a7

@ -107,6 +107,16 @@ jobs:
cache-to: type=gha,mode=max
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
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
with:

Loading…
Cancel
Save