Skip to content

Commit

Permalink
only trigger kind validation if kind files are chamged
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdotcosta committed Apr 22, 2024
1 parent aac99d6 commit a4b3919
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/pr-kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a4b3919

Please sign in to comment.