From 4927d1b19958301352a6fc75c751805e029a00ac Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo <71768+gionn@users.noreply.github.com> Date: Mon, 9 Jun 2025 14:11:03 +0200 Subject: [PATCH] Prevent failure in debug ingress logs when local cluster didn't run (#4611) --- .github/workflows/pull-request.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e77f5c017..ef6895ba4 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -172,6 +172,7 @@ jobs: key: cache-dist-${{ github.run_id }} - name: Deploy local ACS + id: deploy-local-acs uses: ./.github/actions/deploy-local-acs with: docker_username: ${{ secrets.DOCKER_USERNAME }} @@ -193,7 +194,7 @@ jobs: test-runner: playwright - name: Debug Ingress Controller Logs - if: always() + if: always() && steps.deploy-local-acs.outcome == 'success' run: | kubectl logs -n ingress-nginx -l app.kubernetes.io/name=ingress-nginx --tail=-1