Skip to content

Commit 8fcb180

Browse files
authored
Modify build.yml to prioritize RELEASE_TOKEN
Updated GITHUB_TOKEN to use RELEASE_TOKEN if available.
1 parent ccdbc08 commit 8fcb180

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches: [ main ]
1010

1111
permissions:
12-
contents: write
12+
contents: write
1313

1414
jobs:
1515
build:
@@ -47,4 +47,5 @@ jobs:
4747
prerelease: false
4848
generate_release_notes: true
4949
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
# Use RELEASE_TOKEN if available, otherwise fallback to GITHUB_TOKEN
51+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)