File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ jobs:
1515
1616 steps :
1717 - name : Checkout repository
18- uses : actions/checkout@v2
18+ uses : actions/checkout@v3
1919 with :
20- token : ${{ secrets.GH_TOKEN }}
20+ token : ${{ secrets.GITHUB_TOKEN }}
2121
2222 - name : Set up Git
2323 run : |
24- git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
24+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
2525 git config --global user.name "GitHub Actions"
2626 git config --global user.email "github-actions[bot]@users.noreply.github.com"
2727
2828 - name : Deploy to GitHub Pages
2929 run : |
3030 git checkout gh-pages || git checkout --orphan gh-pages
3131 git add .
32- git commit -m "Deploy updates"
33- git push origin gh-pages --force
32+ git commit -m "Deploy updates" || echo "No changes to commit"
33+ git push origin gh-pages
You can’t perform that action at this time.
0 commit comments