Skip to content

Commit eb2d9ac

Browse files
authored
ci(release): only delete current release if found (#258)
1 parent b1d5634 commit eb2d9ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ex-workflow.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ jobs:
243243
github.event_name == 'push'
244244
env:
245245
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
246-
run: gh release delete $TAG -y --cleanup-tag
246+
run: |
247+
if gh release view $TAG; then
248+
gh release delete $TAG --yes --cleanup-tag
249+
fi
247250
248251
- name: Create new release
249252
if: |

0 commit comments

Comments
 (0)