Skip to content

Commit 2c7d010

Browse files
author
Pelle Wessman
committed
Set git related token in correct place
1 parent c872332 commit 2c7d010

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/reusable-sync.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
- uses: actions/checkout@v3
9696
with:
9797
fetch-depth: 0 # As we want to check if the remote branch already exists and is up to date
98+
token: ${{ secrets.GITHUB_TOKEN_OVERRIDE || secrets.GITHUB_TOKEN }}
9899

99100
- name: Set up Node.js
100101
if: inputs.npm-pre-sync-script || inputs.npm-post-sync-script
@@ -186,8 +187,6 @@ jobs:
186187
git push origin ${{ inputs.branch-name }} -fu --no-verify
187188
fi
188189
fi
189-
env:
190-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN_OVERRIDE || secrets.GITHUB_TOKEN }}
191190
192191
- name: Open a PR for the sync
193192
if: steps.push-changes.outputs.createPR

0 commit comments

Comments
 (0)