Skip to content

Commit

Permalink
Set git related token in correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelle Wessman committed Feb 28, 2023
1 parent c872332 commit 2c7d010
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/reusable-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # As we want to check if the remote branch already exists and is up to date
token: ${{ secrets.GITHUB_TOKEN_OVERRIDE || secrets.GITHUB_TOKEN }}

- name: Set up Node.js
if: inputs.npm-pre-sync-script || inputs.npm-post-sync-script
Expand Down Expand Up @@ -186,8 +187,6 @@ jobs:
git push origin ${{ inputs.branch-name }} -fu --no-verify
fi
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN_OVERRIDE || secrets.GITHUB_TOKEN }}
- name: Open a PR for the sync
if: steps.push-changes.outputs.createPR
Expand Down

0 comments on commit 2c7d010

Please sign in to comment.