1- name : OAS PR health check
1+ name : PR Codegen Validation
22
33on :
44 pull_request :
@@ -27,17 +27,13 @@ jobs:
2727 uses : actions/setup-node@v4
2828 with :
2929 node-version : 20
30- registry-url : ' https://registry.npmjs.org'
3130
32- - name : Install dependencies
33- timeout-minutes : 5
34- run : |
35- npm config set registry https://registry.npmjs.org
36- npm ci --verbose
31+ - name : Install commitlint dependencies
32+ run : npm ci
3733 working-directory : ${{ github.workspace }}/.github/commitlint
3834
39- - name : Install octokit dependencies
40- run : npm i
35+ - name : Install get-access-token dependencies
36+ run : npm ci
4137 working-directory : ${{ github.workspace }}/.github/get-access-token
4238
4339 - name : Get github app access token
5349 const token = await getAccessToken()
5450 return token
5551
56- - name : Trigger all SDK workflow
57- id : return_dispatch
52+ - name : Trigger validation workflow in codegen repo
53+ id : codegen_workflow
5854 env :
5955 GH_TOKEN : ${{ steps.get_access_token.outputs.result }}
6056 run : |
@@ -80,13 +76,11 @@ jobs:
8076 echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT
8177 echo "Triggered workflow run ID: $RUN_ID"
8278
83- - name : Checking SDK health status
84- uses : Codex-/await-remote-run@v1.12.2
79+ - name : Check status of codegen validation workflow
80+ uses : Codex-/await-remote-run@v1.13.0
8581 with :
8682 token : ${{ steps.get_access_token.outputs.result }}
8783 repo : xeroapi-sdk-codegen
8884 owner : xero-internal
89- run_id : ${{ steps.return_dispatch.outputs.run_id }}
90- workflow_time_minimum : 60
91- max_timeout : 3600
85+ run_id : ${{ steps.codegen_workflow.outputs.run_id }}
9286
0 commit comments