Skip to content

Commit 957c415

Browse files
pranavz28claude
andcommitted
ci(sdk-regression): add workflow_dispatch to run the web fan-out on demand
Lets the SDK regression matrix be triggered manually (and on the PR's own branch) against a chosen CLI branch, without a comment/label. The Buildkite App/POA job stays comment/label-only, so a dispatch tests the web fan-out only. Part of PER-9772. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 087f919 commit 957c415

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/sdk-regression.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
types: [created, edited]
55
pull_request:
66
types: [labeled, synchronize, reopened]
7+
workflow_dispatch:
8+
inputs:
9+
branch:
10+
description: CLI branch to run all SDK regression against
11+
required: false
12+
default: master
713
permissions:
814
contents: read
915
jobs:
@@ -24,7 +30,8 @@ jobs:
2430
# (enforced by check-access below) or apply a label.
2531
if: >-
2632
(github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == 'RUN_REGRESSION') ||
27-
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-sdk-regression'))
33+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-sdk-regression')) ||
34+
(github.event_name == 'workflow_dispatch')
2835
strategy:
2936
matrix:
3037
# Format: repo@branch (default branch is master)
@@ -87,8 +94,13 @@ jobs:
8794
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
8895
COMMENT_HEAD_REF: ${{ steps.comment-branch.outputs.head_ref }}
8996
COMMENT_HEAD_SHA: ${{ steps.comment-branch.outputs.head_sha }}
97+
DISPATCH_BRANCH: ${{ github.event.inputs.branch }}
98+
DISPATCH_SHA: ${{ github.sha }}
9099
run: |
91-
if [ "$EVENT_NAME" = "pull_request" ]; then
100+
if [ "$EVENT_NAME" = "workflow_dispatch" ]; then
101+
echo "head_ref=$DISPATCH_BRANCH" >> "$GITHUB_OUTPUT"
102+
echo "head_sha=$DISPATCH_SHA" >> "$GITHUB_OUTPUT"
103+
elif [ "$EVENT_NAME" = "pull_request" ]; then
92104
echo "head_ref=$PR_HEAD_REF" >> "$GITHUB_OUTPUT"
93105
echo "head_sha=$PR_HEAD_SHA" >> "$GITHUB_OUTPUT"
94106
else

0 commit comments

Comments
 (0)