File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }}
You can’t perform that action at this time.
0 commit comments