-
Notifications
You must be signed in to change notification settings - Fork 125
41 lines (35 loc) · 1.39 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Open API PR check
on:
pull_request:
paths:
- '**'
jobs:
pr-health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout codegen repo
uses: actions/checkout@v4
with:
repository: xero-internal/xeroapi-sdk-codegen
path: xeroapi-sdk-codegen
# - name: Install octokit dependencies
# run: npm i
# working-directory: xeroapi-sdk-codegen/.github/octokit
# - name: Get github app access token
# id: get_access_token
# env:
# GITHUB_APP_ID: ${{ secrets.XERO_GITHUB_APP_ID }}
# GITHUB_APP_PRIVATE_KEY: ${{ secrets.XERO_GITHUB_APPLICATION_KEY }}
# uses: actions/github-script@v7
# with:
# result-encoding: string
# script: |
# const { getAccessToken } = await import('${{ github.workspace }}/xeroapi-sdk-codegen/.github/octokit/index.js')
# const token = await getAccessToken()
# return token
# - name: Checkout xero-node repo
# uses: actions/checkout@v4
# with:
# repository: XeroAPI/xero-node
# path: xero-node
# token: ${{steps.get_access_token.outputs.result}}