From a4b3919ee540ab2b5bc0bc2191276293c1cdf165 Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Mon, 22 Apr 2024 12:20:04 +0200 Subject: [PATCH] only trigger kind validation if kind files are chamged --- .github/workflows/pr-kind.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-kind.yml b/.github/workflows/pr-kind.yml index e751258d..8e18e7ef 100644 --- a/.github/workflows/pr-kind.yml +++ b/.github/workflows/pr-kind.yml @@ -35,15 +35,15 @@ jobs: continue-on-error: true run: | set +e - echo ${ALL_CHANGED_FILES} | grep -c '/kind/' - echo "grep_result=$(echo ${ALL_CHANGED_FILES} | grep -c '/kind/')" >> $GITHUB_OUTPUT + echo ${ALL_CHANGED_FILES} | grep -c 'kind/' + echo "grep_result=$(echo ${ALL_CHANGED_FILES} | grep -c 'kind/')" >> $GITHUB_OUTPUT kind-test-docker-linux: name: Deploy Docker Linux - runs-on: ${{ matrix.os }} if: needs.scheck-if-kind-changed.outputs.kind_grep_result > 0 needs: check-if-kind-changed + runs-on: ${{ matrix.os }} env: IngressHTTPPort: 80 strategy: @@ -81,6 +81,8 @@ jobs: kind-test-docker-macos: name: Deploy Docker MacOS + if: needs.scheck-if-kind-changed.outputs.kind_grep_result > 0 + needs: check-if-kind-changed runs-on: ${{ matrix.os }} env: IngressHTTPPort: 80 @@ -139,6 +141,8 @@ jobs: kind-test-podman-rootless-linux: name: Deploy Podman Rootless Linux if: false + # if: needs.scheck-if-kind-changed.outputs.kind_grep_result > 0 + needs: check-if-kind-changed runs-on: ${{ matrix.os }} env: IngressHTTPPort: 30080 @@ -179,6 +183,8 @@ jobs: kind-test-podman-rootless-macos: name: Deploy Podman Rootless MacOS if: false + # if: needs.scheck-if-kind-changed.outputs.kind_grep_result > 0 + needs: check-if-kind-changed runs-on: ${{ matrix.os }} env: IngressHTTPPort: 30080 @@ -223,6 +229,8 @@ jobs: kind-test-podman-rootful-linux: name: Deploy Podman Rootful Linux + if: needs.scheck-if-kind-changed.outputs.kind_grep_result > 0 + needs: check-if-kind-changed runs-on: ${{ matrix.os }} env: IngressHTTPPort: 80 @@ -262,6 +270,8 @@ jobs: kind-test-podman-rootful-macos: name: Deploy Podman Rootful MacOS if: false + # if: needs.scheck-if-kind-changed.outputs.kind_grep_result > 0 + needs: check-if-kind-changed runs-on: ${{ matrix.os }} env: IngressHTTPPort: 80