Skip to content

Commit 6fa8ce4

Browse files
committed
ci(build.yml): Remove tag only once
1 parent aa31966 commit 6fa8ce4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,21 @@ env:
3131
REPO_BIN: 'emacs-eask/binaries'
3232

3333
jobs:
34+
prepare:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: ClementTsang/delete-tag-and-release@v0.4.0
39+
if: github.ref == 'refs/heads/master'
40+
continue-on-error: true
41+
with:
42+
delete_release: true
43+
tag_name: ${{ env.VERSION }}
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.PAT }}
46+
3447
build:
48+
needs: [prepare]
3549
runs-on: ubuntu-latest
3650
strategy:
3751
fail-fast: false

0 commit comments

Comments
 (0)