From 586bbbf7eb0f51899e95f05a8655dfddc70a2fd0 Mon Sep 17 00:00:00 2001 From: "Jose R. Gonzalez" Date: Wed, 5 Jul 2023 16:51:06 -0500 Subject: [PATCH] ensure release creation only happens after release deletion is completed successfully Signed-off-by: Jose R. Gonzalez --- .github/workflows/dev_release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_release.yaml b/.github/workflows/dev_release.yaml index 0f536409..a79991c9 100644 --- a/.github/workflows/dev_release.yaml +++ b/.github/workflows/dev_release.yaml @@ -45,6 +45,7 @@ jobs: ve1/bin/tar-file --release=${DEV_RELEASE} - name: Delete previous release and tag + name: delete-previous if: ${{ steps.create-tarfile.outcome == 'success' }} uses: dev-drprasad/delete-tag-and-release@v0.2.1 with: @@ -55,7 +56,7 @@ jobs: - name: Create the release id: create_release - if: ${{ always() && steps.create-tarfile.outcome == 'success' }} + if: ${{ steps.delete-previous.outcome == 'success' }} uses: softprops/action-gh-release@v1 with: tag_name: ${{ env.DEV_RELEASE }}