From bf7d4e13c81ab408a4279847fb0b24a5d79ea85e Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 18 Jul 2023 18:33:25 +0200 Subject: [PATCH] run cache deletion job only, if needed jobs were successful --- .github/workflows/test-backend.yml | 2 +- .github/workflows/test-e2e.yml | 2 +- .github/workflows/test-webapp.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index e9a05b998..b963a9e45 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -124,7 +124,7 @@ jobs: cleanup: name: Cleanup - if: always() + if: success() needs: [files-changed, unit_test_backend] runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 6bad6fb4f..c4ddc620f 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -98,7 +98,7 @@ jobs: cleanup: name: Cleanup - if: always() + if: success() needs: [docker_preparation, fullstack_tests] runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/test-webapp.yml b/.github/workflows/test-webapp.yml index f89437317..8e59bdf10 100644 --- a/.github/workflows/test-webapp.yml +++ b/.github/workflows/test-webapp.yml @@ -100,7 +100,7 @@ jobs: cleanup: name: Cleanup - if: always() + if: success() needs: [files-changed, unit_test_webapp] runs-on: ubuntu-latest continue-on-error: true