Skip to content

Commit b1c3541

Browse files
committed
ci: lexicon schema validation.
1 parent 79781e5 commit b1c3541

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
jobs:
2+
validate-pinksea-lexicons-workflow:
3+
name: Validate PinkSea lexicons
4+
permissions:
5+
contents: read
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check for any changed lexicons
9+
id: check-for-changed-lexicons
10+
uses: tj-actions/changed-files@v41
11+
with:
12+
files: |
13+
PinkSea.Lexicons/**/*.json
14+
- name: Validate lexicon schema
15+
if: steps.check-for-changed-lexicons.outputs.any_changed == 'true'
16+
uses: dsanders11/json-schema-validate-action
17+
with:
18+
schema: https://internect.info/lexicon-schema.json
19+
files: PinkSea.Lexicons/**/*.json

0 commit comments

Comments
 (0)