Skip to content

Commit 0a9867b

Browse files
committed
Add PR number
1 parent a5df9b4 commit 0a9867b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/integration-pr.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
# To test changes the ref to the current branch.
4040
gh api -X POST -H "Accept: application/vnd.github+json" \
4141
-H "X-GitHub-Api-Version: 2022-11-28" \
42-
-f 'inputs[checkRunId]=${{ steps.checkrun.outputs.checkId }}' \
43-
-f "ref=run-tests" \
44-
/repos/${{ github.repository }}/actions/workflows/integration-tests.yml/dispatches
42+
-f 'inputs[check_run_id]=${{ steps.checkrun.outputs.checkId }}' \
43+
-f 'inputs[pull_request_number]=${{ github.events.pull_request.number }}' \
44+
-f "ref=${{ github.ref_name }}" \
45+
/repos/${{ github.repository }}/actions/workflows/sdk-nightly.yml/dispatches

.github/workflows/integration-tests.yml .github/workflows/sdk-nightly.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Integration Tests
22
on:
33
workflow_dispatch:
44
inputs:
5-
checkRunId:
5+
check_run_id:
66
description: "ID for the Check Run in a PR"
77
type: string
8+
required: false
9+
pull_request_number:
10+
description: "Pull request number to test (if empty, tests run against main)"
11+
required: false
812

913
jobs:
1014
myEvent:

0 commit comments

Comments
 (0)