Skip to content

Commit

Permalink
YML validation for chinese translation (huggingface#930)
Browse files Browse the repository at this point in the history
* YML validation for chinese translation

* update paths
  • Loading branch information
mishig25 authored Mar 13, 2023
1 parent 3e55cb5 commit 49af75b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/validate-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
branches:
- main
paths:
- "_*.yml"
- "**/_*.yml"
- "schemas/_*.schema.yml"
pull_request:
paths:
- "_*.yml"
- "**/_*.yml"
- "schemas/_*.schema.yml"

jobs:
Expand All @@ -30,4 +30,20 @@ jobs:
uses: nrkno/yaml-schema-validator-github-action@v4
with:
schema: schemas/_tags.schema.yml
target: _tags.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

0 comments on commit 49af75b

Please sign in to comment.