Skip to content

Commit 4f74b7a

Browse files
committed
Auto-delete existing release in workflow to allow updating tags
1 parent ba26a2f commit 4f74b7a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
- name: Check out Git repository
2020
uses: actions/checkout@v4
2121

22+
- name: Delete existing release (if exists)
23+
shell: bash
24+
run: |
25+
gh release delete ${{ github.ref_name }} --yes || true
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
2229
- name: Install Node.js
2330
uses: actions/setup-node@v4
2431
with:

0 commit comments

Comments
 (0)