diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2198c5835..2e9f4193c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -55,14 +55,14 @@ jobs: - name: Calling All SDK workflows run: | - response=$(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}}"}}') - - echo "response: $response" + dispatchId=$(1000 + 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": ""}}' # - name: Get workflow run ID # id: get-run-id