File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1515 with :
1616 fetch-depth : 0 # Ensure all branches are fetched
1717
18+ - name : Switch to gh-pages branch
19+ run : git checkout gh-pages
20+
1821 - name : Set up Node.js
1922 uses : actions/setup-node@v3
2023 with :
@@ -25,30 +28,32 @@ jobs:
2528
2629 - name : Check and update latest releases
2730 env :
28- GITHUB_TOKEN : \ ${{ secrets.GITHUB_TOKEN }}
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2932 run : node check-releases.js
3033
3134 - name : Commit changes
3235 run : |
3336 git config --local user.name "GitHub Actions Bot"
3437 git config --local user.email "[email protected] " 3538
36- # Switch to gh-pages and commit badges.json changes
37- git checkout gh-pages
39+ # Commit badges.json changes
3840 git add badges.json
3941 git commit -m "Update badges.json with latest release URLs" || echo "No changes to commit for badges.json"
4042 git push origin gh-pages
4143
42- # Switch to main and commit README.md changes
43- git checkout main
44+ - name : Switch to main branch
45+ run : git checkout main
46+
47+ - name : Commit README.md changes
48+ run : |
4449 git add README.md
4550 git commit -m "Update README.md with updated GitHub download links" || echo "No changes to commit for README.md"
4651 git push origin main
4752
4853 - name : Create pull request
4954 uses : peter-evans/create-pull-request@v5
5055 with :
51- token : \ ${{ secrets.GITHUB_TOKEN }}
56+ token : ${{ secrets.GITHUB_TOKEN }}
5257 base : main
5358 branch : update-releases
5459 title : " Update badges.json and README.md"
You can’t perform that action at this time.
0 commit comments