From a3a08680e2c681f200ee2e6e397d2a4b7058b4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Cogolu=C3=A8gnes?= Date: Thu, 14 Dec 2023 17:44:24 +0100 Subject: [PATCH] Sleep 5 seconds after latest alpha release is deleted Creating the new release right away can make it a draft, which is not visible. --- .github/workflows/publish-perf-test.yml | 5 ++++- .github/workflows/test.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-perf-test.yml b/.github/workflows/publish-perf-test.yml index 057381a2..bf60d194 100644 --- a/.github/workflows/publish-perf-test.yml +++ b/.github/workflows/publish-perf-test.yml @@ -54,6 +54,9 @@ jobs: token: ${{ secrets.CI_GITHUB_TOKEN }} tag-filter: '^v-rabbitmq-perf-test-latest$' keep-last-n: 0 + - name: Make sure latest release is deleted + run: | + sleep 5s - name: Push to GitHub Release uses: softprops/action-gh-release@v1 with: @@ -70,4 +73,4 @@ jobs: event-type: new_snapshot client-payload: >- {"archive_url" : "https://github.com/rabbitmq/rabbitmq-java-tools-binaries-dev/releases/download/${{ env.tag_name }}/perf-test-${{ env.release_version}}.jar", - "tags": "pivotalrabbitmq/perf-test:dev,pivotalrabbitmq/perf-test:dev-${{ env.release_version }}"} \ No newline at end of file + "tags": "pivotalrabbitmq/perf-test:dev,pivotalrabbitmq/perf-test:dev-${{ env.release_version }}"} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4ab139c..6ef46576 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,6 +63,9 @@ jobs: token: ${{ secrets.CI_GITHUB_TOKEN }} tag-filter: '^v-rabbitmq-perf-test-latest$' keep-last-n: 0 + - name: Make sure latest release is deleted + run: | + sleep 5s - name: Push to GitHub Release uses: softprops/action-gh-release@v1 with: