Skip to content

Commit a89474f

Browse files
author
Sunil Thaha
authored
Merge pull request #2136 from vprashar2929/ci-eq-run-1
ci: add missing check for file changes in equinix workflow
2 parents d959e53 + 2864e93 commit a89474f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/k8s-equinix.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
os_name: ubuntu_22_04
5151

5252
build-and-deploy:
53-
needs: create-runner
53+
needs: [check-changes, create-runner]
54+
if: needs.check-changes.outputs.changes == 'true'
5455
runs-on: self-hosted
5556
env:
5657
GOCACHE: /home/ghrunner/.cache/go-build
@@ -197,9 +198,9 @@ jobs:
197198
echo "::endgroup::"
198199
199200
cleanup-runner:
200-
needs: build-and-deploy
201+
needs: [check-changes, build-and-deploy]
201202
runs-on: ubuntu-latest
202-
if: always() # Run even if the previous job fails
203+
if: always() && needs.check-changes.outputs.changes == 'true' # Run even if the previous job fails
203204
steps:
204205
- name: Checkout source
205206
uses: actions/checkout@v4

0 commit comments

Comments
 (0)