fix: only on yaml

This commit is contained in:
Markus Pesch 2025-01-12 15:08:20 +01:00
parent 378e799afa
commit 0a72c4bb58
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -17,6 +17,17 @@ jobs:
run: |
apk update
apk add git npm
- name: Check if files were touched
uses: dorny/paths-filter@v3.0.2
id: changes
with:
filters: |
yaml:
- '**/*.yaml'
- '**/*.yml'
- name: Skip further steps, when condition is not met
if: steps.filter.outputs.yaml == 'false'
run: exit 0
- uses: actions/checkout@v4.2.2
- name: Lint helm files
run: |
@ -32,6 +43,17 @@ jobs:
run: |
apk update
apk add git npm
- name: Check if files were touched
uses: dorny/paths-filter@v3.0.2
id: changes
with:
filters: |
yaml:
- '**/*.yaml'
- '**/*.yml'
- name: Skip further steps, when condition is not met
if: steps.filter.outputs.yaml == 'false'
run: exit 0
- uses: actions/checkout@v4.2.2
- name: Unittest
run: |