From a6077abb3d42902d0a9740482c2a5994c70e3eb3 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 22:51:28 +0100 Subject: [PATCH] ExamplePipeline: update ArtifactCleanUp --- ExamplePipeline.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ExamplePipeline.yml b/ExamplePipeline.yml index 4e69223..23ece50 100644 --- a/ExamplePipeline.yml +++ b/ExamplePipeline.yml @@ -123,10 +123,19 @@ jobs: - PublishToGitHubPages steps: - - name: 🗑️ Delete all Artifacts + + - name: 🗑️ Delete package Artifacts + if: ${{ ! startsWith(github.ref, 'refs/tags') }} uses: geekyeggo/delete-artifact@v1 with: name: | + ${{ fromJson(needs.Params.outputs.params).artifacts.package }} + + - name: 🗑️ Delete remaining Artifacts + uses: geekyeggo/delete-artifact@v1 + with: + name: | + ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-* ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }} ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}