mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
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:
parent
a8431c69a7
commit
1e5cc585a7
10
.github/workflows/docker_latest.yml
vendored
10
.github/workflows/docker_latest.yml
vendored
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user