From 2c7d010dc41a1ed3bd7c0e6a5e1d530c439af12e Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Tue, 28 Feb 2023 11:42:19 +0100 Subject: [PATCH] Set git related token in correct place --- .github/workflows/reusable-sync.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/reusable-sync.yml b/.github/workflows/reusable-sync.yml index 4313126..79d825b 100644 --- a/.github/workflows/reusable-sync.yml +++ b/.github/workflows/reusable-sync.yml @@ -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 @@ -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