diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ea367d555..a82e55dd4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -57,12 +57,12 @@ jobs: run: | dispatchId=$((10000 + RANDOM % 90000)) echo "dispatchId: $dispatchId" - # curl -X POST \ - # -H 'Authorization: Bearer ${{ steps.get_access_token.outputs.result }}' \ - # -H "Accept: application/vnd.github.everest-preview+json" \ - # -H "X-GitHub-Api-Version: 2022-11-28" \ - # https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/pr.yml/dispatches \ - # -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}", "dispatch_id": ""}}' + curl -X POST \ + -H 'Authorization: Bearer ${{ steps.get_access_token.outputs.result }}' \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/pr.yml/dispatches \ + -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}", "dispatch_id": "$dispatchId"}}' # - name: Get workflow run ID # id: get-run-id