Skip to content

Commit c347bcc

Browse files
committed
A different tagging action
1 parent 8c6ae5b commit c347bcc

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/tag-on-merge.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ jobs:
1818
PATCH=$(($LASTPATCH+1))
1919
echo "::set-output name=tagname::2.1.${PATCH})"
2020
21-
- name: Create tag
22-
uses: negz/create-tag@v1
21+
- name: Create Tag
22+
uses: actions/github-script@v3
2323
with:
24-
version: ${{ steps.compute-tag.outputs.tagname }}
25-
token: ${{ secrets.GITHUB_TOKEN }}
24+
github-token: ${{ github.token }}
25+
script: |
26+
github.git.createRef({
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
ref: "refs/tags/${{ steps.compute-tag.outputs.tagname }}",
30+
sha: context.sha
31+
})

0 commit comments

Comments
 (0)