-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
680299b
commit 42ebe90
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Generate API sitemap | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
sitemap_job: | ||
runs-on: ubuntu-latest | ||
name: Generate a sitemap | ||
|
||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate the sitemap | ||
id: sitemap | ||
uses: cicirello/generate-sitemap@v1 | ||
with: | ||
base-url-path: https://mmrl.dergoogler.com/?module= | ||
path-to-root: modules | ||
sitemap-format: xml | ||
|
||
- name: Output stats | ||
run: | | ||
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}" | ||
echo "url-count = ${{ steps.sitemap.outputs.url-count }}" | ||
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" | ||
- name: Setup Git | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Commit Changes | ||
run: | | ||
git add . | ||
git commit -m "Update Sitemap" || true | ||
git push || true |