Skip to content

Commit 48d4944

Browse files
authored
Merge pull request #785 from immutable/feat/fix-audience-tag-creation
fix: use GitHub API to create tags, supporting audience/vX.Y.Z format
2 parents 2c25b67 + 5ae826f commit 48d4944

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/tag.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ jobs:
4646
fi
4747
4848
- name: Create Tag
49-
uses: negz/create-tag@v1
50-
with:
51-
version: "${{ env.TAG }}"
52-
message: "Version ${{ env.TAG }}"
53-
token: ${{ secrets.GITHUB_TOKEN }}
49+
run: |
50+
SHA=$(git rev-parse HEAD)
51+
gh api /repos/${{ github.repository }}/git/refs \
52+
--method POST \
53+
-f ref="refs/tags/${TAG}" \
54+
-f sha="$SHA"
55+
env:
56+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
TAG: ${{ env.TAG }}

0 commit comments

Comments
 (0)