diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 55604c21a..b498f0ac6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -50,16 +50,12 @@ jobs: const token = await getAccessToken() return token - - name: Checkout codegen repo - uses: actions/checkout@v4 - with: - repository: xero-internal/xeroapi-sdk-codegen - path: xeroapi-sdk-codegen - token: ${{ steps.get_access_token.outputs.result }} - - - name: Checkout xero-node repo - uses: actions/checkout@v4 - with: - repository: XeroAPI/xero-node - path: xero-node - token: ${{steps.get_access_token.outputs.result}} \ No newline at end of file + - name: Calling node SDK workflow + run: | + curl --fail-with-body \ + -XPOST \ + -H 'Authorization: token ${{ steps.get_access_token.outputs.result }}' \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Content-Type: application/json" \ + https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/codegen-node-pr.yml/dispatches \ + -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name":"master"}}' \ No newline at end of file