-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.26 KB
/
sitemap-generation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Generate sitemap
on:
push:
branches: [ staging ]
paths: [ '**.html', '**.pdf' ]
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Generate a sitemap
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://www.cicirello.org/
- 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: Create Pull Request
uses: peter-evans/[email protected]
with:
title: "Automated sitemap update"
body: >
Automated changes. Sitemap updated by
the [generate-sitemap](https://github.com/cicirello/generate-sitemap)
GitHub action.
commit-message: "Automated sitemap update."
author: Vincent A. Cicirello <[email protected]>
committer: Vincent A. Cicirello <[email protected]>
branch: create-pull-request/sitemap
delete-branch: true