New ๐ŸŒŠ wave for @helm

Commit f7a6720c

f7a6720ca125Merged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท ~1 modified

Description

Merge pull request #971

release/0.40.1

Details

Commit
f7a6720ca125
Parent
b8c1a16c2e88
Merge parent
fc6f61473eae

.github/workflows/release-tag.ymlmodifiedView file

@@ -22,19 +22,16 @@
2222 github-token: ${{ secrets.PAT }}
2323 script: |
2424 const tag = context.payload.pull_request.head.ref.replace("release/", "v")
25- try {
26- await github.rest.git.deleteRef({
25+ const ref = {
2726 owner: context.repo.owner,
2827 repo: context.repo.repo,
2928 ref: "refs/tags/" + tag,
30- })
31- } catch {
29+ sha: context.payload.pull_request.merge_commit_sha,
3230 }
33- await github.rest.git.createRef({
34- owner: context.repo.owner,
35- repo: context.repo.repo,
36- ref: "refs/tags/" + tag,
37- sha: context.payload.pull_request.merge_commit_sha,
31+
32+ github.rest.git.createRef(ref).catch(err => {
33+ if (err.status !== 422) throw err;
34+ github.rest.git.updateRef(ref);
3835 })
39- return tag
4036 result-encoding: string
37+