mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-10 08:55:27 +02:00
CI: Add YAML check
This commit is contained in:
parent
c4f4d1fdb1
commit
e98499fd82
24
.github/workflows/lint-yaml.yml
vendored
Normal file
24
.github/workflows/lint-yaml.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user