Skip to content

Commit e19fba5

Browse files
committed
Refactor documentation update workflow PAT token placement
- Move PAT_TOKEN environment variable to the appropriate step - Ensure correct environment variable scoping for Git push operation
1 parent d4d86b5 commit e19fba5

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
@@ -18,8 +18,7 @@ jobs:
1818
with:
1919
python-version: '3.8'
2020

21-
- env:
22-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
21+
2322
# Install Pandoc using apt-get
2423
- run: |
2524
sudo apt-get update
@@ -43,11 +42,12 @@ jobs:
4342
- run: |
4443
git clone https://github.com/openmlsys/html-en.git
4544
- run: cp -r _build/html/* html-en/
46-
- run: |
45+
- env:
46+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
47+
run: |
4748
cd html-en
4849
git add .
4950
git config user.name "Chivier"
5051
git config user.email "[email protected]"
5152
git commit -m 'update docs'
5253
git push https://[email protected]/openmlsys/html-en.git HEAD:main
53-

0 commit comments

Comments
 (0)