From 9f577b5ec92c924df7d21bb6dd239448c762305e Mon Sep 17 00:00:00 2001 From: Anastasia Dusak <61540676+k-a-il@users.noreply.github.com> Date: Fri, 30 May 2025 15:24:52 +0200 Subject: [PATCH] GH Actions: cleanup artifacts if previous job did not fail or was not cancelled --- .github/workflows/aws-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws-main.yml b/.github/workflows/aws-main.yml index e7763bfc379f7..bba98eaa629f3 100644 --- a/.github/workflows/aws-main.yml +++ b/.github/workflows/aws-main.yml @@ -286,7 +286,7 @@ jobs: runs-on: ubuntu-latest # only remove the image artifacts if the build was successful # (this allows a re-build of failed jobs until for the time of the retention period) - if: success() + if: always() && !failure() && !cancelled() needs: push steps: - uses: geekyeggo/delete-artifact@v5