From 1e5cc585a7b4a69954bcfbd09e76641c007953d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Guti=C3=A9rrez=20Hermoso?= Date: Wed, 26 Jun 2024 17:02:45 -0400 Subject: [PATCH] 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. --- .github/workflows/docker_latest.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker_latest.yml b/.github/workflows/docker_latest.yml index e5b7a5b8..d4539031 100644 --- a/.github/workflows/docker_latest.yml +++ b/.github/workflows/docker_latest.yml @@ -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: