Browse Source

chore: Make YAML workflow git-based (#7477)

Viktor Szépe 1 year ago
parent
commit
a95bb1b945
1 changed files with 5 additions and 3 deletions
  1. 5 3
      .github/workflows/yaml.yml

+ 5 - 3
.github/workflows/yaml.yml

@@ -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)
@@ -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