From 74c95296f16554153115b054b9b01d3d79e8bcf0 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Thu, 15 Sep 2022 01:44:02 +0900 Subject: [PATCH] CI: increase verbosity and comment schema file location (#49) verbose and schema files --- .github/workflows/check-schema.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-schema.yml b/.github/workflows/check-schema.yml index f9e511f9..352d19e0 100644 --- a/.github/workflows/check-schema.yml +++ b/.github/workflows/check-schema.yml @@ -22,16 +22,19 @@ jobs: - name: Scan repo run: python -c "import os; is_dir = os.path.isdir('.github/actions'); print(f'GH_ACTIONS={int(is_dir)}')" >> $GITHUB_ENV + # https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-workflow.json - name: GitHub Actions - workflow - run: check-jsonschema $(find .github/workflows -name '*.yml' -a ! -name '_*.yml') --builtin-schema "github-workflows" + run: check-jsonschema -v $(find .github/workflows -name '*.yml' -a ! -name '_*.yml') --builtin-schema "github-workflows" + # https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-action.json - name: GitHub Actions - action if: ${{ env.GH_ACTIONS == '1' }} - run: check-jsonschema .github/actions/*/*.yml --builtin-schema "github-actions" + run: check-jsonschema -v .github/actions/*/*.yml --builtin-schema "github-actions" + # https://github.com/microsoft/azure-pipelines-vscode/blob/main/service-schema.json - name: Azure Pipelines if: ${{ inputs.azure-dir != '' }} env: SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.205.0/service-schema.json run: | - check-jsonschema ${{ inputs.azure-dir }}/*.yml --schemafile "$SCHEMA_FILE" + check-jsonschema -v ${{ inputs.azure-dir }}/*.yml --schemafile "$SCHEMA_FILE"