Skip to content

Commit f221bd0

Browse files
authored
update wiki workflow (#3005)
* update wiki workflow * fix
1 parent 9a75b62 commit f221bd0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/publish_docs_to_wiki.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ jobs:
3131
mkdir tmp_wiki
3232
cd tmp_wiki
3333
git init
34-
git config user.name $USER_NAME
35-
git config user.email $USER_EMAIL
36-
git pull https://$USER_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git
34+
git config user.name "GitHub Actions"
35+
git config user.email "actions@github.com"
36+
git pull https://$GITHUB_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3739
# 4. Synchronize differences between `docs` & `tmp_wiki`
3840
# 5. Push new Wiki content
3941
- name: Push content to wiki
@@ -42,4 +44,6 @@ jobs:
4244
cd tmp_wiki
4345
git add .
4446
git commit -m "Update Wiki content"
45-
git push -f --set-upstream https://$USER_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git master
47+
git push -f --set-upstream https://$GITHUB_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git master
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)