Skip to content

Commit 8940765

Browse files
committed
add CI
1 parent 79aba72 commit 8940765

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,19 @@ jobs:
5656
with:
5757
script: |
5858
core.setFailed('website/versioned_docs has changed. Instead you need to update the docs in the website/docs folder.')
59+
check_schema:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v4
63+
- name: Get changed files in the docs folder
64+
id: changed-files-specific
65+
uses: tj-actions/changed-files@v46
66+
with:
67+
files: |
68+
website/static/schema.json
69+
website/static/schema-taskrc.json
70+
- uses: actions/github-script@v7
71+
if: steps.changed-files-specific.outputs.any_changed == 'true'
72+
with:
73+
script: |
74+
core.setFailed('schema.json or schema-taskrc.json has changed. Instead you need to update next-schema.json or next-schema-taskrc.json.')

0 commit comments

Comments
 (0)