From 5d170e926461d4f73d5e92655b98d50175876268 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 25 Apr 2024 16:05:02 +0200 Subject: [PATCH] Update yaml-check.yml Signed-off-by: Ettore Di Giacinto --- .github/workflows/yaml-check.yml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/yaml-check.yml b/.github/workflows/yaml-check.yml index f83f03aa..68b5e987 100644 --- a/.github/workflows/yaml-check.yml +++ b/.github/workflows/yaml-check.yml @@ -1,22 +1,18 @@ -name: json-yaml-validate +name: 'Yamllint GitHub Actions' on: - push: - branches: - - main - pull_request: - workflow_dispatch: - -permissions: - contents: read - + - pull_request jobs: - json-yaml-validate: + yamllint: + name: 'Yamllint' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: json-yaml-validate - id: json-yaml-validate - uses: GrantBirki/json-yaml-validate@v2.7.1 + - name: 'Checkout' + uses: actions/checkout@master + - name: 'Yamllint' + uses: karancode/yamllint-github-action@master with: - base_dir: ./gallery + yamllint_file_or_dir: 'gallery' + yamllint_strict: false + yamllint_comment: true + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}