From 4baaf610f382612508c6658a4a114228bbbc234f Mon Sep 17 00:00:00 2001
From: Dablakbandit <ashl.e.thew@gmail.com>
Date: Sat, 30 Nov 2024 10:21:04 +1300
Subject: [PATCH] Update main.yml

---
 .github/workflows/main.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 03b8defb9..e9d1fe183 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -61,10 +61,12 @@ jobs:
           filename: '20_low.zip'
           exclusions: '*.git* README.md *.schema* *.zip *.py run/*'
 
-      - name: Delete
-        uses: ame-yu/action-delete-latest-release@v2
+      - uses: actions/github-script@v4
         with:
-          github_token: ${{ secrets.GITHUB_TOKEN }}
+          github-token: ${{secrets.GITHUB_TOKEN}}
+          script: |
+            const { owner, repo } = context.repo
+            await github.repos.deleteRelease({ owner, repo, release_id: 'patreon' })
 
       - name: Upload Patreon Release
         uses: ncipollo/release-action@v1