Skip to content

Commit

Permalink
Use PERSONAL_ACCESS_TOKEN instead of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
nchlswhttkr committed Oct 13, 2019
1 parent 80d0a99 commit 505685a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/push-to-master-action/entrypoint.sh
Expand Up @@ -7,4 +7,4 @@ git config --global user.email "26531118+nchlswhttkr@users.noreply.github.com"
git init
git add .
git commit -m "Deploy"
git push --force https://nchlswhttkr:$GITHUB_TOKEN@github.com/nchlswhttkr/nchlswhttkr.github.io master
git push --force https://nchlswhttkr:$PERSONAL_ACCESS_TOKEN@github.com/nchlswhttkr/nchlswhttkr.github.io.git master
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: docker://registry.gitlab.com/pages/hugo:latest
- uses: ./.github/push-to-master-action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 505685a

Please sign in to comment.