From 49ae4feba372b39042f1073bf213da4ad6898807 Mon Sep 17 00:00:00 2001 From: Moandor Date: Fri, 4 Dec 2020 01:27:30 +0800 Subject: [PATCH] [github-actions] remove coverage artifacts after uploading (#5778) This removes artifacts when they are no longer needed, saves storage space. --- .github/workflows/posix.yml | 10 ++++++++++ .github/workflows/simulation-1.2.yml | 10 ++++++++++ .github/workflows/simulation.yml | 10 ++++++++++ .github/workflows/toranj.yml | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 5ccb37571..16432644d 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -303,3 +303,13 @@ jobs: - name: Upload Coverage run: | script/test upload_codecov + + delete-coverage-artifacts: + needs: upload-coverage + if: always() + runs-on: ubuntu-20.04 + steps: + - uses: geekyeggo/delete-artifact@1-glob-support + with: + name: cov-* + useGlob: true diff --git a/.github/workflows/simulation-1.2.yml b/.github/workflows/simulation-1.2.yml index 3acc71278..8a1283484 100644 --- a/.github/workflows/simulation-1.2.yml +++ b/.github/workflows/simulation-1.2.yml @@ -340,3 +340,13 @@ jobs: - name: Upload Coverage run: | script/test upload_codecov + + delete-coverage-artifacts: + needs: upload-coverage + if: always() + runs-on: ubuntu-20.04 + steps: + - uses: geekyeggo/delete-artifact@1-glob-support + with: + name: cov-* + useGlob: true diff --git a/.github/workflows/simulation.yml b/.github/workflows/simulation.yml index 408c50ccf..3cb71b229 100644 --- a/.github/workflows/simulation.yml +++ b/.github/workflows/simulation.yml @@ -518,3 +518,13 @@ jobs: - name: Upload Coverage run: | script/test upload_codecov + + delete-coverage-artifacts: + needs: upload-coverage + if: always() + runs-on: ubuntu-20.04 + steps: + - uses: geekyeggo/delete-artifact@1-glob-support + with: + name: cov-* + useGlob: true diff --git a/.github/workflows/toranj.yml b/.github/workflows/toranj.yml index 9db9ab5a0..029657e07 100644 --- a/.github/workflows/toranj.yml +++ b/.github/workflows/toranj.yml @@ -125,3 +125,13 @@ jobs: - name: Upload Coverage run: | script/test upload_codecov + + delete-coverage-artifacts: + needs: upload-coverage + if: always() + runs-on: ubuntu-20.04 + steps: + - uses: geekyeggo/delete-artifact@1-glob-support + with: + name: cov-* + useGlob: true