From aab9fc28872271ba7d4ac554da23d935999c08fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Grasselly?= <56442075+dgrassellyb@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:08:56 +0100 Subject: [PATCH] delete existing release artifacts (#182) --- .github/workflows/push-docker-image.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index a703c1c0..4767d22e 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -101,6 +101,14 @@ jobs: name: deps path: "/workspace/deps-${{ matrix.tags }}.csv" + - name: Delete current release existing artifacts + uses: mknejp/delete-release-assets@v1 + with: + token: ${{ github.token }} + tag: "latest" + assets: | + Dependencies.list.of.docker.image.admiralci-${{ matrix.tags }}.csv + - name: Upload SBOM to release 🔼 uses: svenstaro/upload-release-action@v2 with: