Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/schedule-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Schedule documentation builds"

on:
schedule:
- cron: '0 2 * * *' # 02:00 UTC daily — triggers sphinxbuild on master + all stable* branches
workflow_dispatch:

permissions:
actions: write

jobs:
dispatch:
name: Dispatch sphinxbuild on all branches
runs-on: ubuntu-latest

steps:
- name: Dispatch on master and stable branches
env:
GH_TOKEN: ${{ github.token }}
run: |
set -e
for branch in master $(gh api "repos/${{ github.repository }}/branches" --paginate \
--jq '.[].name | select(startswith("stable"))'); do
echo "Dispatching sphinxbuild.yml on ${branch}"
gh workflow run sphinxbuild.yml --repo "${{ github.repository }}" --ref "${branch}"
done
2 changes: 0 additions & 2 deletions .github/workflows/sphinxbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
branches:
- master
- stable*
schedule:
- cron: '0 2 * * *' # 02:00 UTC daily — full build + deploy
workflow_dispatch:

permissions:
Expand Down
Loading