diff --git a/.github/workflows/test_docker_debian_codename_sub.yml b/.github/workflows/test_docker_debian_codename_sub.yml index 95e94a2ee..a812d5fe2 100644 --- a/.github/workflows/test_docker_debian_codename_sub.yml +++ b/.github/workflows/test_docker_debian_codename_sub.yml @@ -132,7 +132,7 @@ jobs: with: name: ${{ steps.vars.outputs.image_file_name }} path: ${{ steps.vars.outputs.image_file_path }} - retention-days: 1 + retention-days: 2 # Run tests with build image @@ -176,15 +176,16 @@ jobs: args: | ./${{ matrix.test_script }} - ## cleanup after test execution - # cleanup: - ## run only if tests didn't fail: keep the artifact to make job reruns possible - #if: ${{ !failure() }} - #needs: [build, test] - #runs-on: ${{ inputs.runs_on }} - # - #steps: - # - name: Artifact Delete Docker Image - # uses: geekyeggo/delete-artifact@v4 - # with: - # name: ${{ needs.build.outputs.image_file_name }} + # cleanup after test execution + cleanup: + # run only if tests didn't fail: keep the artifact to make job reruns possible + if: ${{ !failure() }} + needs: [build, test] + runs-on: ${{ inputs.runs_on }} + + steps: + - name: Artifact Delete Docker Image + uses: geekyeggo/delete-artifact@v5 + with: + name: ${{ needs.build.outputs.image_file_name }} + failOnError: false