Skip to content

Commit 587ade9

Browse files
committed
ci: add scheduled dispatcher for stable branch tests
GitHub only fires schedule: triggers on the default branch, so squid (and future stable branches) get no periodic CI signal for the CI health dashboard's flaky-rate calculation. Add a dispatcher on main that runs tests.yml on squid daily via workflow_dispatch, which is exempt from the Actions recursion guard under GITHUB_TOKEN. Assisted-by: claude-code:claude-sonnet-5 Signed-off-by: John Ramsden <john.ramsden@canonical.com>
1 parent 716e181 commit 587ade9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Scheduled branch tests
2+
3+
# GitHub only fires cron on the default branch, so stable branches get
4+
# their periodic CI via dispatch from here. Dispatched runs count toward
5+
# the per-branch flaky rate (CE144) on the CI health dashboard.
6+
on:
7+
schedule:
8+
- cron: "0 2 * * *" # Nightly dispatch to stable branches for flaky rate data
9+
workflow_dispatch:
10+
11+
permissions:
12+
actions: write
13+
14+
jobs:
15+
dispatch:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
ref: [squid] # future stable branches: add here
20+
steps:
21+
- name: Dispatch tests.yml on ${{ matrix.ref }}
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: gh workflow run tests.yml --ref "${{ matrix.ref }}" --repo "${{ github.repository }}"

0 commit comments

Comments
 (0)