forked from huggingface/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.42 KB
/
validate-yaml.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
42
43
44
45
46
47
48
49
name: YAML schema validator
on:
push:
branches:
- main
paths:
- "**/_*.yml"
- "schemas/_*.schema.yml"
pull_request:
paths:
- "**/_*.yml"
- "schemas/_*.schema.yml"
jobs:
yaml-schema-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Validate _events.yml"
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_events.schema.yml
target: _events.yml
- name: "Validate _blog.yml"
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_blog.schema.yml
target: _blog.yml
- name: "Validate _tags.yml"
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_tags.schema.yml
target: _tags.yml
# Chinese translation of blog
- name: "Validate _events.yml (chinese translation)"
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_events.schema.yml
target: cn/_events.yml
- name: "Validate _blog.yml (chinese translation)"
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_blog.schema.yml
target: cn/_blog.yml
- name: "Validate _tags.yml (chinese translation)"
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_tags.schema.yml
target: cn/_tags.yml