Skip to content

Commit

Permalink
Added the workflow disptach code for node
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Sep 20, 2024
1 parent da45a50 commit fdacb25
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
- 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"}}'

0 comments on commit fdacb25

Please sign in to comment.