New ๐ŸŒŠ wave for @helm

Commit 22e9004b

22e9004bab8bMerged

Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 2 files ยท ~1 modified ยท -1 deleted

Description

Fix release workflow to work with created tag

Details

Commit
22e9004bab8b
Parent
b04690cdea8e

.github/workflows/create-tag.ymldeleted

1-name: Create tag
2-
3-on:
4- pull_request:
5- branches:
6- - main
7- types:
8- - closed
9-
10-jobs:
11- tagger:
12- runs-on: ubuntu-latest
13- steps:
14- - name: Create tag
15- uses: actions/github-script@v3
16- if: github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release-')
17- with:
18- github-token: ${{ github.token }}
19- script: |
20- const tag = context.payload.pull_request.head.ref.replace("release-", "")
21- github.git.createRef({
22- owner: context.repo.owner,
23- repo: context.repo.repo,
24- ref: "refs/tags/" + tag,
25- sha: context.payload.pull_request.merge_commit_sha
26- })
27-