Skip to content

Commit f5e48df

Browse files
Add commit notebooks index from github-actions[bot], but not default … (#3058)
1 parent c6ac296 commit f5e48df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gh_pages_deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ jobs:
9696
if: ${{ steps.check_deploy.outputs.should_deploy == 'true' }}
9797
shell: bash
9898
env:
99-
GH_TOKEN: ${{ secrets.GH_ACTIONS_BOT_TOKEN }}
99+
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_BOT_TOKEN }}
100100
run: |
101101
git config user.name 'github-actions[bot]'
102102
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
103+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
103104
git add ./notebooks/README.md
104105
git commit -m "Update notebooks index readme file [skip ci]" || echo "Index file is not changed"
105-
git push https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:latest
106+
git push origin HEAD:latest
106107
107108
deploy_github_pages:
108109
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)