mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
Do some validation
This commit is contained in:
10
.github/workflows/validate-json-schema.yml
vendored
10
.github/workflows/validate-json-schema.yml
vendored
@@ -9,8 +9,8 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Validate Toolset JSON files against schema
|
- name: Run JSON Schema validation
|
||||||
uses: cardinalby/schema-validator-action@v3
|
run: |
|
||||||
with:
|
wget https://github.com/neilpa/yajsv/releases/download/v1.4.1/yajsv.linux.amd64
|
||||||
file: '**/toolset-*.json'
|
chmod +x yajsv.linux.amd64
|
||||||
schema: 'schemas/toolset-schema.json'
|
./yajsv.linux.amd64 -s ./schemas/toolset-schema.json ./**/toolset-*.json
|
||||||
|
|||||||
Reference in New Issue
Block a user