File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,21 @@ jobs:
1212
1313 steps :
1414 - name : Checkout the repo
15- uses : actions/checkout@v4
15+ uses : actions/checkout@v3
1616 with :
1717 fetch-depth : 0
1818
1919 - name : Generate the sitemap
20- id : sitemap
2120 uses : cicirello/generate-sitemap@v1
2221 with :
23- base-url-path : https://nonlinearoscillations.github.io/HarmonicBalance.jl /
22+ base-url-path : https://www.example.com /
2423
25- - name : Output stats
24+ - name : Commit and push
2625 run : |
27- echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
28- echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
29- echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
26+ if [[ `git status --porcelain sitemap.xml` ]]; then
27+ git config --global user.name 'github-actions'
28+ git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
29+ git add sitemap.xml
30+ git commit -m "Automated sitemap update" sitemap.xml
31+ git push
32+ fi
You can’t perform that action at this time.
0 commit comments