Skip to content

Commit 0633be7

Browse files
authored
Merge pull request #15128 from nextcloud/backport/15126/stable34
[stable34] ci(workflows): fix cron deploys not running on stable branches
2 parents 09913ab + 8afb22f commit 0633be7

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

.github/workflows/sphinxbuild.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches:
77
- master
88
- stable*
9-
schedule:
10-
- cron: '0 2 * * *' # 02:00 UTC daily — full build + deploy
119
workflow_dispatch:
1210

1311
permissions:

0 commit comments

Comments
 (0)