Skip to content

Commit 8adf97f

Browse files
committed
runner test
1 parent f4dbb83 commit 8adf97f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88

99
jobs:
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
@@ -37,4 +40,4 @@ jobs:
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 }}

0 commit comments

Comments
 (0)