Skip to content

Commit dc9fdb5

Browse files
authored
Update sync-main.yml
1 parent c1665fd commit dc9fdb5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/sync-main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ jobs:
6161
sleep 10
6262
}
6363
env:
64-
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
6564
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
6665
- name: Create or update PR
6766
run: |
67+
echo "$GITHUB_TOKEN" | gh auth login --with-token
6868
git branch
6969
gh api repos/:owner/:repo/commits/$(git rev-parse HEAD) || {
7070
echo "Branch not yet visible to GitHub — waiting a bit more"
@@ -84,6 +84,5 @@ jobs:
8484
fi
8585
exit 0
8686
env:
87-
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
8887
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
8988

0 commit comments

Comments
 (0)