Commit 0e28bf46
0e28bf464f4fMerged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
feat(ci): drop existing tag before release
Details
- Commit
- 0e28bf464f4f
- Parent
- 8e4e436619fd
.github/workflows/goreleaser.ymlmodifiedView file
@@ -24,6 +24,14 @@
2424
github-token: ${{ github.token }}2525
script: |2626
const tag = context.payload.pull_request.head.ref.replace("release/", "v")27+
try {28+
await github.rest.git.deleteRef({29+
owner: context.repo.owner,30+
repo: context.repo.repo,31+
ref: "refs/tags/" + tag,32+
})33+
} catch {34+
}2735
await github.rest.git.createRef({2836
owner: context.repo.owner,2937
repo: context.repo.repo,