Commit 1fc85ddd
1fc85ddd42e1Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
feat(ci): try to drop old tag
Details
- Commit
- 1fc85ddd42e1
- Parent
- d16b777e80ff
.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,