New ๐ŸŒŠ wave for @helm

Commit f1e38178

f1e38178ba4aMerged

Svyatoslav <[email protected]> ยท 5 years ago ยท 1 file ยท +1 added

Description

Autocreate tag on release branch merge

Details

Commit
f1e38178ba4a
Parent
4921b19589d3

.github/workflows/create-tag.ymladdedView file

1+name: Create tag
2+
3+on:
4+ pull_request:
5+ branches:
6+ - release-.*
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 == true
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+ })