Skip to content

Commit 63e8798

Browse files
authored
Update push step to use GITHUB_TOKEN for authentication (#240)
1 parent dc32869 commit 63e8798

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/python-docs-theme.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,8 @@ jobs:
103103
104104
- name: Push changes
105105
if: ${{ contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }}
106+
env:
107+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106108
run: |
109+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
107110
git push

0 commit comments

Comments
 (0)