Skip to content

Commit 3143a08

Browse files
authored
chore(ci): schedule changelog to rebuild daily at 8am, and on release only (#2216)
1 parent 8b81fb0 commit 3143a08

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

.github/workflows/build_changelog.yml

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ name: Build changelog
33

44
on:
55
workflow_dispatch:
6+
schedule:
7+
# ┌───────────── minute (0 - 59)
8+
# │ ┌───────────── hour (0 - 23)
9+
# │ │ ┌───────────── day of the month (1 - 31)
10+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
11+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12+
# │ │ │ │ │
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# * * * * *
16+
- cron: '0 8 * * *'
617

718
jobs:
819
changelog:

.github/workflows/on_push_docs.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,14 @@ on:
88
- "docs/**"
99
- "mkdocs.yml"
1010
- "examples/**"
11+
- "CHANGELOG.md"
1112

1213
jobs:
13-
changelog:
14-
permissions:
15-
contents: write
16-
uses: ./.github/workflows/reusable_publish_changelog.yml
17-
1814
release-docs:
19-
needs: changelog
2015
permissions:
2116
contents: write
2217
pages: write
2318
uses: ./.github/workflows/reusable_publish_docs.yml
2419
with:
2520
version: develop
2621
alias: stage
27-
# Maintenance: Only necessary in repo migration
28-
# - name: Create redirect from old docs
29-
# run: |
30-
# git checkout gh-pages
31-
# test -f 404.html && echo "Redirect already set" && exit 0
32-
# git checkout develop -- 404.html
33-
# git add 404.html
34-
# git commit -m "chore: set docs redirect" --no-verify
35-
# git push origin gh-pages -f

.github/workflows/rebuild_latest_docs.yml

-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ on:
1515
required: true
1616

1717
jobs:
18-
changelog:
19-
permissions:
20-
contents: write
21-
uses: ./.github/workflows/reusable_publish_changelog.yml
22-
2318
release-docs:
24-
needs: changelog
2519
permissions:
2620
contents: write
2721
pages: write

0 commit comments

Comments
 (0)