Skip to content

Commit

Permalink
ci(release): only delete current release if found (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Feb 6, 2025
1 parent b1d5634 commit eb2d9ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ex-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ jobs:
github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release delete $TAG -y --cleanup-tag
run: |
if gh release view $TAG; then
gh release delete $TAG --yes --cleanup-tag
fi
- name: Create new release
if: |
Expand Down

0 comments on commit eb2d9ac

Please sign in to comment.