Skip to content

Commit d413500

Browse files
authored
Update Sitemap.yml
1 parent 73dfd70 commit d413500

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/Sitemap.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)