Skip to content

Commit 6fc591e

Browse files
authored
CI - Use new internal test inputs (#4231)
# Description of Changes Flipping on some new inputs to `Internal Tests` to get new functionality. I'll follow-up with a more detailed description in discord. # API and ABI breaking changes None. CI only. # Expected complexity level and risk 2 # Testing - [x] public PR without private PR just uses master - [x] public PR with private PR uses that one - [x] fails if private PR is not approved - [x] fails if private PR does not pass its CI - [x] passes if private PR is ready to go --------- Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
1 parent c43439d commit 6fc591e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,15 +887,16 @@ jobs:
887887
const targetRepo = process.env.TARGET_REPO;
888888
// Use the ref for pull requests because the head sha is brittle (github does some extra dance where it merges in master).
889889
const publicRef = (context.eventName === 'pull_request') ? context.payload.pull_request.head.ref : context.sha;
890+
const publicPrNumber = context.payload.pull_request?.number ?? context.payload.inputs?.pr_number;
890891
const preDispatch = new Date().toISOString();
891-
892+
892893
// Dispatch the workflow in the target repository
893894
await github.rest.actions.createWorkflowDispatch({
894895
owner: targetOwner,
895896
repo: targetRepo,
896897
workflow_id: workflowId,
897898
ref: targetRef,
898-
inputs: { public_ref: publicRef }
899+
inputs: { public_ref: publicRef, public_pr_number: String(publicPrNumber) }
899900
});
900901
901902
const sleep = (ms) => new Promise(r => setTimeout(r, ms));

0 commit comments

Comments
 (0)