Skip to content

Commit 309009a

Browse files
[PETOSS-829] Make consistent and update naming
1 parent 2948e67 commit 309009a

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/pr-health-check.yml renamed to .github/workflows/pr-codegen-validation.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: OAS PR health check
1+
name: PR Codegen Validation
22

33
on:
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
@@ -53,8 +49,8 @@ jobs:
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

Comments
 (0)