Skip to content

Commit c1a6e78

Browse files
committed
Update GitHub Actions workflow to use GitHub token for cloning and pushing documentation updates, enhancing security and ensuring proper authentication during automated commits.
1 parent 80c39d2 commit c1a6e78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update_docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ jobs:
5252
5353
# Clone the html-en repository
5454
- run: cd ..
55-
- run: git clone https://github.com/openmlsys/html-en.git
55+
- run: |
56+
git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/openmlsys/html-en.git
5657
- run: cp -r _build/html/* html-en/
5758
- run: |
5859
cd html-en
5960
git add .
6061
git config user.name "Chivier"
6162
git config user.email "[email protected]"
6263
git commit -m 'update docs'
63-
git push -u origin main
64+
git push -u https://${{ secrets.GITHUB_TOKEN }}@github.com/openmlsys/html-en.git main

0 commit comments

Comments
 (0)