From a67d5c45d53423c33e3dcd7a15a91917aac6097a Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sat, 12 Aug 2023 22:08:43 +0200 Subject: [PATCH] Clean up artifacts --- .github/workflows/php.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b793bde2..54cea676 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -277,3 +277,17 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true + + cleanup: + name: Cleanup artifacts + needs: [unit-tests-linux, coverage] + runs-on: [ubuntu-latest] + if: | + always() && + needs.coverage.result == 'success' || + (needs.unit-tests-linux == 'success' && needs.coverage == 'skipped') + + steps: + - uses: geekyeggo/delete-artifact@v2 + with: + name: coverage-data