Skip to content

Commit

Permalink
Add PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Jul 19, 2024
1 parent a5df9b4 commit 0a9867b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/integration-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
# To test changes the ref to the current branch.
gh api -X POST -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-f 'inputs[checkRunId]=${{ steps.checkrun.outputs.checkId }}' \
-f "ref=run-tests" \
/repos/${{ github.repository }}/actions/workflows/integration-tests.yml/dispatches
-f 'inputs[check_run_id]=${{ steps.checkrun.outputs.checkId }}' \
-f 'inputs[pull_request_number]=${{ github.events.pull_request.number }}' \
-f "ref=${{ github.ref_name }}" \
/repos/${{ github.repository }}/actions/workflows/sdk-nightly.yml/dispatches
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Integration Tests
on:
workflow_dispatch:
inputs:
checkRunId:
check_run_id:
description: "ID for the Check Run in a PR"
type: string
required: false
pull_request_number:
description: "Pull request number to test (if empty, tests run against main)"
required: false

jobs:
myEvent:
Expand Down

0 comments on commit 0a9867b

Please sign in to comment.