From a3057a48d8f292e52331f5ab21c481cb2f87192c Mon Sep 17 00:00:00 2001 From: Avimitin Date: Fri, 23 Feb 2024 23:15:32 +0800 Subject: [PATCH] [ci] clean test reports after action was done Signed-off-by: Avimitin --- .github/workflows/pr.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1c08c32f72..8cabe0a05a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -220,4 +220,13 @@ jobs: else echo "No cycle change detect" fi + - uses: geekyeggo/delete-artifact@v4 + with: + # test-reports has been used, it can be deleted + name: test-reports-* + clean-after-cancelled: + - if: ${{ cancelled() }} + - uses: geekyeggo/delete-artifact@v4 + with: + name: test-reports-*