File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99jobs :
1010 build-release :
11+ permissions :
12+ contents : write
13+ actions : write
1114 runs-on : ubuntu-latest
1215 steps :
1316 - name : Checkout code
@@ -19,14 +22,14 @@ jobs:
1922 - name : Create Tag
2023 id : create_tag
2124 env :
22- GH_PAT : ${{ secrets.GH_PAT }}
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2326 run : |
2427 BRANCH_NAME="${GITHUB_REF##*/}"
2528 TAG_NAME="${BRANCH_NAME}-auto-$(date +'%Y%m%d-%H%M%S')"
2629 git config user.name "github-actions"
2730 git config user.email "github-actions@github.com"
2831 git tag $TAG_NAME
29- git remote set-url origin https://x-access-token:${GH_PAT }@github.com/${GITHUB_REPOSITORY}.git
32+ git remote set-url origin https://x-access-token:${GITHUB_TOKEN }@github.com/${GITHUB_REPOSITORY}.git
3033 git push origin $TAG_NAME
3134 echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
3235
3740 files : WirtsTools.lua
3841 tag_name : ${{ steps.create_tag.outputs.tag_name }}
3942 env :
40- GITHUB_TOKEN : ${{ secrets.GH_PAT }}
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments