From e7fa8bbb1ede3fad4a60698430fb53b609fedcdb Mon Sep 17 00:00:00 2001 From: Dmitri Chernysh Date: Sat, 19 Oct 2024 21:35:30 +0300 Subject: [PATCH] Fix GitHub actions in case of deleting atrifacts (#27) * Run deleting artifacts if a previous job is succeeded or failed * Testing * Revert "Testing" This reverts commit 3b40ad0608b2379790cdf52938db19a40a4adb42. --- .github/workflows/deploy.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ec91a67..2baa1f8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,5 +39,5 @@ jobs: uses: ./.github/workflows/clean-up-artifacts.yml needs: deploy-to-production-track # Run this job even if "needs" job is failed - if: ${{ always() && contains(needs.*.result, 'failure') }} + if: success() || failure() secrets: inherit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f13c8f0..5f1cbae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,5 +27,5 @@ jobs: uses: ./.github/workflows/clean-up-artifacts.yml needs: run-tests # Run this job even if "needs" job is failed - if: ${{ always() && contains(needs.*.result, 'failure') }} + if: success() || failure() secrets: inherit