lint changes for push

This commit is contained in:
xenoscr 2022-09-10 17:17:55 -04:00
parent 26c7c40413
commit c64d355075
No known key found for this signature in database
GPG Key ID: 52C26F96860C0DAA
2 changed files with 22 additions and 12 deletions

View File

@ -0,0 +1,17 @@
---
name: YAML Lint with reviewdog
on:
pull_request:
branches:
- master
jobs:
lintFiles:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run yamllint
uses: reviewdog/action-yamllint@v1
with:
reporter: github-pr-review # Change reporter.
yamllint_flags: '--config-file .github/.yamllint'

View File

@ -1,20 +1,13 @@
--- ---
name: YAML Lint name: YAML Lint Push Check
on: on: [push]
push:
branches:
- master
pull_request:
branches:
- master
jobs: jobs:
lintFiles: lintFiles:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Run yamllint - name: Frenck's yamllint
uses: reviewdog/action-yamllint@v1 uses: frenck/action-yamllint@v1
with: with:
reporter: github-pr-review # Change reporter. config: ".github/.yamllint"
yamllint_flags: '--config-file .github/.yamllint'