Skip to content

Commit

Permalink
Split reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 3, 2024
1 parent 38aa773 commit 1ee250e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 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: reviewdog YAML lint
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
32 changes: 3 additions & 29 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
--- # This will check quickemu, quickget and yaml files with reviewdog
---
name: run reviewdog

on:
push:
paths:
- quickget
- quickemu
- .github/
branches: '**'
pull_request:
paths:
- quickget
- quickemu
- .github/
branches: '**'
workflow_dispatch:

jobs:
Expand All @@ -22,7 +15,6 @@ jobs:
pull-requests: write
name: shellcheck
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -39,21 +31,3 @@ jobs:
pattern: |
quickget
quickemu
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 }}
#level: warning
github_token: ${{ secrets.github_token }}
yamllint_flags: '.github/'

0 comments on commit 1ee250e

Please sign in to comment.