From 4d611638687426518235290778bf67cc7791d0e5 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 18 Jul 2023 18:41:16 +0200 Subject: [PATCH] run cache deletion job only, if file change condition is true --- .github/workflows/test-backend.yml | 2 +- .github/workflows/test-webapp.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index b963a9e45..0e8b7f3e6 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -124,7 +124,7 @@ jobs: cleanup: name: Cleanup - if: success() + if: (needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.docker == 'true') || success() needs: [files-changed, unit_test_backend] runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/test-webapp.yml b/.github/workflows/test-webapp.yml index 8e59bdf10..32cd563ef 100644 --- a/.github/workflows/test-webapp.yml +++ b/.github/workflows/test-webapp.yml @@ -100,7 +100,7 @@ jobs: cleanup: name: Cleanup - if: success() + if: (needs.files-changed.outputs.docker == 'true' || needs.files-changed.outputs.webapp == 'true') || success() needs: [files-changed, unit_test_webapp] runs-on: ubuntu-latest continue-on-error: true