From 76fffa25cad8d105dc334550dfab3b781f19c615 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:08:20 +0100 Subject: [PATCH] fix: only on yaml --- .gitea/workflows/helm.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 5e025b8..6120b9f 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -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: |