diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 11cc8855..0832ebf9 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -274,3 +274,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