File tree Expand file tree Collapse file tree 2 files changed +32
-4
lines changed Expand file tree Collapse file tree 2 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,39 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - name : Checkout codegen repo
13
+ - name : Checkout Repository
14
14
uses : actions/checkout@v4
15
+
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v4
15
18
with :
16
- repository : xero-internal/xeroapi-sdk-codegen
17
- path : xeroapi-sdk-codegen
19
+ python-version : ' 3.x'
20
+
21
+ - name : Install yaml lint
22
+ run : pip install yamllint
23
+
24
+ - name : Get list of changed files
25
+ id : changed_files
26
+ run : |
27
+ git fetch origin ${{github.base_ref}} --depth=1
28
+ git diff --name-only origin/${{github.base_ref}}...HEAD > changed_files.txt
29
+ grep -E '\.ya?ml$' changed_files.txt > yaml_files.txt || true
30
+
31
+ - name : Run yaml lint on changed files
32
+ run : |
33
+ if [ -s yaml_files.txt ]; then
34
+ echo "Linting the following yaml files:"
35
+ cat yaml_files.txt
36
+ xargs yamllint < yaml_files.txt
37
+ else
38
+ echo 'no yaml files changed'
39
+ fi
40
+
41
+ # - name: Checkout codegen repo
42
+ # uses: actions/checkout@v4
43
+ # with:
44
+ # repository: xero-internal/xeroapi-sdk-codegen
45
+ # path: xeroapi-sdk-codegen
18
46
19
47
# - name: Install octokit dependencies
20
48
# run: npm i
Original file line number Diff line number Diff line change 32
32
schema :
33
33
type : integer
34
34
maximum : 100
35
- example : 50
35
+ example : 50000
36
36
- in : query
37
37
name : page
38
38
description : number of records to skip for pagination
You can’t perform that action at this time.
0 commit comments