From 3e1b81b0e53d2d2b1de953b28eccd46ae20c2253 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sun, 5 May 2024 00:55:37 +0200 Subject: [PATCH] CI: Add YAML check --- .github/workflows/lint-yaml.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/lint-yaml.yml diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml new file mode 100644 index 000000000..ef619f24a --- /dev/null +++ b/.github/workflows/lint-yaml.yml @@ -0,0 +1,24 @@ +--- +name: 🐶 YAML check 🧪 +on: + push: + branches: '**' + pull_request: + branches: '**' + workflow_dispatch: +jobs: + yamllint: + name: yaml lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: haya14busa/action-cond@v1 + id: reporter + with: + cond: ${{ github.event_name == 'pull_request' }} + - uses: reviewdog/action-yamllint@v1 + with: + reporter: ${{ steps.reporter.outputs.value }} + github_token: ${{ secrets.github_token }} + yamllint_flags: '-d relaxed .github/' + level: error