Skip to content

Commit 032f95c

Browse files
committed
Update GitHub Actions documentation workflow authentication
- Replace PAT_TOKEN with GH_TOKEN for authentication - Update Git user configuration to use GitHub Actions Bot identity - Simplify authentication and user configuration for documentation updates
1 parent 8940abd commit 032f95c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update_docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
# Modified these steps for proper authentication
3030
- name: Clone and push to html-en
3131
run: |
32-
git clone https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/openmlsys/html-en.git
32+
git clone https://${{ secrets.GH_TOKEN }}@github.com/openmlsys/html-en.git
3333
cp -r _build/html/* html-en/
3434
cd html-en
35-
git config user.name "Chivier"
36-
git config user.email "chivier.humber@outlook.com"
35+
git config user.name 'GitHub Actions Bot'
36+
git config user.email 'github-actions[bot]@users.noreply.github.com'
3737
git add .
3838
git commit -m 'update docs'
39-
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/openmlsys/html-en.git main
39+
git push https://${{ secrets.GH_TOKEN }}@github.com/openmlsys/html-en.git main

0 commit comments

Comments
 (0)