From 49af75bee29e5632281624ff714f74e4dad89aa9 Mon Sep 17 00:00:00 2001 From: Mishig Date: Mon, 13 Mar 2023 15:42:58 +0100 Subject: [PATCH] YML validation for chinese translation (#930) * YML validation for chinese translation * update paths --- .github/workflows/validate-yaml.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-yaml.yml b/.github/workflows/validate-yaml.yml index bee7b4eaa9..0f7a7bd448 100644 --- a/.github/workflows/validate-yaml.yml +++ b/.github/workflows/validate-yaml.yml @@ -4,11 +4,11 @@ on: branches: - main paths: - - "_*.yml" + - "**/_*.yml" - "schemas/_*.schema.yml" pull_request: paths: - - "_*.yml" + - "**/_*.yml" - "schemas/_*.schema.yml" jobs: @@ -30,4 +30,20 @@ jobs: uses: nrkno/yaml-schema-validator-github-action@v4 with: schema: schemas/_tags.schema.yml - target: _tags.yml \ No newline at end of file + 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 \ No newline at end of file