Skip to content

Commit

Permalink
workflows: update the latest branch conditionally
Browse files Browse the repository at this point in the history
Since we now run the build three times, we don't want to update the
latest branch unless all three builds complete successfully.
  • Loading branch information
jordigh committed Jun 27, 2024
1 parent a8431c6 commit 1e5cc58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1e5cc58

Please sign in to comment.