Skip to content

Commit fa41395

Browse files
authored
fix(ci): use VARIABLES_WRITE_TOKEN for V1_LATEST_TAG update (#126)
1 parent affbc21 commit fa41395

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/bun-compile.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ jobs:
126126
runs-on: ubuntu-latest
127127
permissions:
128128
contents: write
129-
variables: write
130129
steps:
131130
- name: Download all artifacts
132131
uses: actions/download-artifact@v4
@@ -163,7 +162,7 @@ jobs:
163162
- name: Update V1_LATEST_TAG variable
164163
if: ${{ !contains(inputs.version || github.event.client_payload.version, 'prerelease') }}
165164
env:
166-
GH_TOKEN: ${{ github.token }}
165+
GH_TOKEN: ${{ secrets.VARIABLES_WRITE_TOKEN }}
167166
VERSION: ${{ inputs.version || github.event.client_payload.version }}
168167
run: |
169168
gh api --method PATCH "repos/${{ github.repository }}/actions/variables/V1_LATEST_TAG" \

0 commit comments

Comments
 (0)