Skip to content

Commit

Permalink
now this
Browse files Browse the repository at this point in the history
  • Loading branch information
chottuthejimmy committed Jan 16, 2025
1 parent 0fc0792 commit b6951a3
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/testdriver-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,24 @@ jobs:

- name: Dispatch testdriver workflow
if: success()
shell: pwsh
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{
"event_type": "run-testdriver",
"client_payload": {
"pull_request_number": "'${{ github.event.pull_request.number }}'",
"sha": "'${{ github.sha }}'",
"workflow_run_id": "${{ github.run_id }}"
$headers = @{
Accept = "application/vnd.github.v3+json"
Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}"
}
$body = @{
event_type = "run-testdriver"
client_payload = @{
pull_request_number = "${{ github.event.pull_request.number }}"
sha = "${{ github.sha }}"
workflow_run_id = "${{ github.run_id }}"
}
}'
} | ConvertTo-Json
Invoke-RestMethod `
-Uri "https://api.github.com/repos/${{ github.repository }}/dispatches" `
-Method POST `
-Headers $headers `
-Body $body `
-ContentType "application/json"

0 comments on commit b6951a3

Please sign in to comment.