From 02b59f294d4a2c3df9d3d02047be56fa225d0aa8 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..b3667d1 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: ${{ github.repository }} + owner: kobim + keyword: latest + deletetype: "tr" - name: Release PDF artifact if: github.event_name == 'push' && github.ref == 'refs/heads/main'