-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathframework-docs-dispatch-release-branches.yml
More file actions
42 lines (35 loc) · 1.27 KB
/
framework-docs-dispatch-release-branches.yml
File metadata and controls
42 lines (35 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Framework Docs Dispatch to Release Branches
on:
push:
branches: [main]
paths:
- framework/docs/source/_static/docs-ui.js
- framework/docs/source/_static/custom.css
- framework/docs/source/conf_base.py
- framework/docs/source/_templates/**
- .github/workflows/framework-docs.yml
- .github/workflows/framework-docs-dispatch-release-branches.yml
workflow_dispatch:
permissions:
actions: write
contents: read
jobs:
dispatch-release-docs-builds:
if: ${{ github.repository == 'flwrlabs/flower' }}
runs-on: ubuntu-22.04
steps:
- name: Dispatch framework-docs.yml to release branches
env:
GH_TOKEN: ${{ github.token }}
run: |
# Strict mode: fail on errors, undefined vars, and pipeline failures
set -euo pipefail
# Fetch all branches and keep only release/framework-* ones
branches=$(gh api repos/flwrlabs/flower/branches \
--paginate \
--jq '.[].name' | grep '^release/framework-' || true)
# Dispatch docs workflow on each release branch
for branch in $branches; do
echo "Dispatching on $branch"
gh workflow run framework-docs.yml --repo flwrlabs/flower --ref "$branch"
done