Skip to content

Commit

Permalink
CI: Add YAML check
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 5, 2024
1 parent 6c175fc commit 3e1b81b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3e1b81b

Please sign in to comment.