New ๐ŸŒŠ wave for @helm

Commit ab030822

ab030822088bMerged

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

Description

Merge pull request #96 from helmwave/autocreate_tag

Autocreate tag on release branch merge

Details

Commit
ab030822088b
Parent
4921b19589d3
Merge parent
87ffcdb6f058

.github/workflows/create-tag.ymladdedView file

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+