diff options
author | Philip Kuryloski <kuryloskip@vmware.com> | 2021-11-04 22:04:35 +0100 |
---|---|---|
committer | Philip Kuryloski <kuryloskip@vmware.com> | 2021-11-04 22:04:35 +0100 |
commit | 0d0dc5676b864c3da943d5b9ad1233e59595442b (patch) | |
tree | 7a3626b5be10bed2a8620df17856373e5f79fa0c | |
parent | bb7acb28e98ec98759c319e1d0cfcd4c894c23bb (diff) | |
download | rabbitmq-server-git-0d0dc5676b864c3da943d5b9ad1233e59595442b.tar.gz |
Revert "See if the update-rbe-images workflow can be updated automatically"
This reverts commit 46efc994ffb0b8c5dd3af3157c0255dbdefbb4da.
-rw-r--r-- | .github/workflows/update-rbe-images.yaml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/update-rbe-images.yaml b/.github/workflows/update-rbe-images.yaml index b78caa4e82..aa6be4ba7c 100644 --- a/.github/workflows/update-rbe-images.yaml +++ b/.github/workflows/update-rbe-images.yaml @@ -22,14 +22,18 @@ 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}" @@ -39,7 +43,6 @@ 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 |