File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Schedule documentation builds"
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 2 * * *' # 02:00 UTC daily — triggers sphinxbuild on master + all stable* branches
6+ workflow_dispatch :
7+
8+ permissions :
9+ actions : write
10+
11+ jobs :
12+ dispatch :
13+ name : Dispatch sphinxbuild on all branches
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Dispatch on master and stable branches
18+ env :
19+ GH_TOKEN : ${{ github.token }}
20+ run : |
21+ set -e
22+ for branch in master $(gh api "repos/${{ github.repository }}/branches" --paginate \
23+ --jq '.[].name | select(startswith("stable"))'); do
24+ echo "Dispatching sphinxbuild.yml on ${branch}"
25+ gh workflow run sphinxbuild.yml --repo "${{ github.repository }}" --ref "${branch}"
26+ done
Original file line number Diff line number Diff line change 66 branches :
77 - master
88 - stable*
9- schedule :
10- - cron : ' 0 2 * * *' # 02:00 UTC daily — full build + deploy
119 workflow_dispatch :
1210
1311permissions :
You can’t perform that action at this time.
0 commit comments