mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2024-12-28 07:48:50 +01:00
lint changes for push
This commit is contained in:
parent
26c7c40413
commit
c64d355075
17
.github/workflows/yaml-lint-reviewdog.yml
vendored
Normal file
17
.github/workflows/yaml-lint-reviewdog.yml
vendored
Normal 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'
|
17
.github/workflows/yaml-linting.yml
vendored
17
.github/workflows/yaml-linting.yml
vendored
@ -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'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user