Skip to content

Commit

Permalink
Make YAML workflow git-based
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Nov 26, 2023
1 parent 9901473 commit 0f4beb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: YAML Validation
on:
pull_request:
paths:
- '**.y?ml'
- '**.yml'
- '**.yaml'
push:
paths:
- '**.y?ml'
- '**.yml'
- '**.yaml'

permissions:
contents: read # to fetch code (actions/checkout)
Expand All @@ -21,4 +23,4 @@ jobs:
uses: actions/checkout@v4

- name: Run yamllint
run: find . -path \*/vendor -prune -false -o -name \*.y*ml | xargs yamllint
run: git ls-files --cached -z -- '*.y*ml' | xargs --null -- yamllint

0 comments on commit 0f4beb6

Please sign in to comment.