File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
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-
2118 - name : Set up Node.js
2219 uses : actions/setup-node@v3
2320 with :
@@ -31,24 +28,27 @@ jobs:
3128 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3229 run : node check-releases.js
3330
34- - name : Commit changes
31+ - name : Create a new branch for updates
32+ run : |
33+ git checkout -b update-releases
34+
35+ - name : Commit badges.json changes
3536 run : |
3637 git config --local user.name "GitHub Actions Bot"
3738 git config --local user.email "[email protected] " 3839
3940 # Commit badges.json changes
4041 git add badges.json
4142 git commit -m "Update badges.json with latest release URLs" || echo "No changes to commit for badges.json"
42- git push origin gh-pages
43-
44- - name : Switch to main branch
45- run : git checkout main
4643
4744 - name : Commit README.md changes
4845 run : |
46+ # Commit README.md changes
4947 git add README.md
5048 git commit -m "Update README.md with updated GitHub download links" || echo "No changes to commit for README.md"
51- git push origin main
49+
50+ - name : Push changes
51+ run : git push origin update-releases
5252
5353 - name : Create pull request
5454 uses : peter-evans/create-pull-request@v5
You can’t perform that action at this time.
0 commit comments