Skip to content

Commit 5f0b0bd

Browse files
committed
Update RSS and Sitemap workflows
1 parent 7987792 commit 5f0b0bd

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/rss.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- 'docs/feed.xml'
9+
- 'docs/sitemap.xml'
710
workflow_dispatch:
811

912
jobs:
@@ -12,17 +15,21 @@ jobs:
1215

1316
steps:
1417
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
ref: ${{ github.head_ref }}
1521

1622
- name: Install Pandoc
1723
run:
1824
sudo apt-get install -y pandoc
1925

2026
- name: Build RSS
21-
run:
27+
run: |
28+
git -C ${{ github.workspace }} pull --rebase
2229
./rss.sh
2330
working-directory: docs/
2431

2532
- name: Commit Updated
26-
uses: stefanzweifel/git-auto-commit-action@v4
33+
uses: stefanzweifel/git-auto-commit-action@v5
2734
with:
2835
commit_message: Build feed.xml

.github/workflows/sitemap.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- 'docs/feed.xml'
9+
- 'docs/sitemap.xml'
710
workflow_dispatch:
811

912
jobs:
@@ -12,13 +15,17 @@ jobs:
1215

1316
steps:
1417
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
ref: ${{ github.head_ref }}
1521

1622
- name: Build Sitemap
17-
run:
23+
run: |
24+
git -C ${{ github.workspace }} pull --rebase
1825
./sitemap.sh
1926
working-directory: docs/
2027

2128
- name: Commit Updated
22-
uses: stefanzweifel/git-auto-commit-action@v4
29+
uses: stefanzweifel/git-auto-commit-action@v5
2330
with:
2431
commit_message: Build sitemap.xml

0 commit comments

Comments
 (0)