Commit 5d4d54b
authored
ci: add workflow_dispatch to enable manual CI runs on stack branches (#2559)
After PR #2558 removed `spr/**` from the `pull_request.branches` filter in
the three Delphi CI workflows, intermediate stack PRs (whose base is
`spr/edge/<sha>`) no longer auto-trigger CI on every rebase — only the
bottom PR (base = `edge`) does. That solved the CI-overload problem from
spr's force-push cascades but left no way to manually validate an
intermediate PR before it became the bottom of the stack.
Adding `workflow_dispatch` gives repo write-access users an opt-in manual
trigger:
- **UI**: Actions → workflow → "Run workflow" dropdown → pick branch → Run.
- **CLI**: `gh workflow run "Delphi Python Tests" --ref spr/edge/<sha>`.
Security note: `workflow_dispatch` is restricted by GitHub to users with
`write` permission on the repo. Fork-PR authors cannot invoke it (403),
so this does not weaken the existing fork-PR safeguards (which govern
`pull_request` events, a separate concern).
Workflows updated:
- `.github/workflows/python-ci.yml` (Delphi Python Tests)
- `.github/workflows/cypress-tests.yml` (E2E Tests)
- `.github/workflows/jest-server-test.yml` (Server Integration Tests)
The `lint.yml` workflow already runs unconditionally on every PR via its
`types: [opened, reopened, synchronize]` filter, so it doesn't need this.1 parent 56df8e0 commit 5d4d54b
3 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
0 commit comments