From 17aa9e554f673e3c85b01837fb78f2e49c04b9b7 Mon Sep 17 00:00:00 2001 From: Mirko Milovanovic Date: Mon, 10 Feb 2025 14:18:55 +0100 Subject: [PATCH] feat: update delete release assets action to use new delete-tag action --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd9e541..90532a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,13 +38,14 @@ jobs: - name: Check for PDF artifact run: file ${{ env.PDF_NAME }} || grep -q ' PDF ' - - name: Delete old release assets - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: mknejp/delete-release-assets@v1 + - name: Execute Delete Release/Tag action + uses: ShivamHS/delete-tag@v1 with: - token: ${{ secrets.RELEASE_TOKEN }} - tag: latest - assets: ${{ env.PDF_NAME }} + token: ${{ secrets.RELEASE_TOKEN }} #generate new PAT and give delete access to it + repo: https://gitea.kobim.cloud/kobim/Tesi + owner: kobim + keyword: latest + deletetype: "tr" - name: Release PDF artifact if: github.event_name == 'push' && github.ref == 'refs/heads/main'