Skip to content

Commit

Permalink
ensure release creation only happens after release deletion is comple…
Browse files Browse the repository at this point in the history
…ted successfully

Signed-off-by: Jose R. Gonzalez <[email protected]>
  • Loading branch information
komish committed Jul 6, 2023
1 parent 0d0d978 commit 586bbbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/dev_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand All @@ -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 }}
Expand Down

0 comments on commit 586bbbf

Please sign in to comment.