diff options
author | Philip Kuryloski <kuryloskip@vmware.com> | 2021-11-03 15:24:38 +0100 |
---|---|---|
committer | Philip Kuryloski <kuryloskip@vmware.com> | 2021-11-03 15:25:50 +0100 |
commit | 46efc994ffb0b8c5dd3af3157c0255dbdefbb4da (patch) | |
tree | 1115c039f139207d2f32352aeda780fdcebd08a1 | |
parent | ba5cfb1bae608a27382bfbfb96d8d22347e26825 (diff) | |
download | rabbitmq-server-git-46efc994ffb0b8c5dd3af3157c0255dbdefbb4da.tar.gz |
See if the update-rbe-images workflow can be updated automatically
When the latest erlang actually moves while the PR is open
-rw-r--r-- | .github/workflows/update-rbe-images.yaml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/.github/workflows/update-rbe-images.yaml b/.github/workflows/update-rbe-images.yaml index aa6be4ba7c..b78caa4e82 100644 --- a/.github/workflows/update-rbe-images.yaml +++ b/.github/workflows/update-rbe-images.yaml @@ -22,18 +22,14 @@ jobs: steps: - name: CHECKOUT REPOSITORY uses: actions/checkout@v2.4.0 - - name: SKIP IF THE PR ALREADY EXISTS - id: check-for-branch - run: | - set +e - git ls-remote --exit-code --heads origin bump-rbe-image-${{ matrix.short_version }} - echo "::set-output name=c::$?" - name: UPDATE RBE IMAGE SHA - if: steps.check-for-branch.outputs.c != 0 env: IMAGE: pivotalrabbitmq/rabbitmq-server-buildenv TAG: linux-erlang-${{ matrix.erlang_version }} run: | + git ls-remote --exit-code --heads origin bump-rbe-image-${{ matrix.short_version }} \ + && git checkout bump-rbe-image-${{ matrix.short_version }} + # buildbuddy caches the container image, so we must use a specific sha to ensure # the latest is used echo "Retrieving current digest for ${IMAGE}:${TAG}" @@ -43,6 +39,7 @@ jobs: npx buildozer \ "dict_set exec_properties container-image:docker://${IMAGE}@${DIGEST}" \ //:erlang_${{ matrix.short_version }}_platform || test $? -eq 3 + git diff - name: CREATE PULL REQUEST if: steps.check-for-branch.outputs.c != 0 uses: peter-evans/create-pull-request@v3 |