New ๐ŸŒŠ wave for @helm

Commit b4f787d1

b4f787d167f8Merged

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

Description

fix(ci): create just a tag

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
b4f787d167f8
Parent
a824fb908aca

.github/workflows/release-tag.ymlmodifiedView file

@@ -21,7 +21,7 @@
2121 # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow
2222 github-token: ${{ secrets.PAT }}
2323 script: |-2
24- const tag = context.payload.pull_request.head.ref.replace("release/", "v");
24+ const tag = context.payload.pull_request.head.ref.replace("release/", "v")
2525 const ref = {
2626 owner: context.repo.owner,
2727 repo: context.repo.repo,
@@ -29,20 +29,7 @@
2929 sha: context.payload.pull_request.merge_commit_sha,
3030 }
3131
32- try {
33- await github.rest.git.getRef(ref);
34- await github.rest.git.updateRef({...ref, force: true});
35- console.log("tag has been updated");
36-
37- } catch (err) {
38- if (err.status === 404) {
39- await github.rest.git.createRef(ref);
40- console.log("tag has been created");
41- } else {
42- console.log("just error");
43- throw err;
44- }
45- }
32+ await github.rest.git.createRef(ref)
4633
4734 result-encoding: string
4835 retry-exempt-status-codes: 400,401