From cbe2b4e60f973e79e054c07d79d446419040f14a Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Mon, 12 Jan 2026 18:55:30 -0600 Subject: [PATCH] fix delete zip issue --- .github/workflows/generator-android.yml | 3 ++- .github/workflows/generator-linux.yml | 3 ++- .github/workflows/generator-macos.yml | 3 ++- .github/workflows/generator-windows.yml | 3 ++- rdgen/urls.py | 1 + rdgenerator/views.py | 2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generator-android.yml b/.github/workflows/generator-android.yml index 343870c..228004a 100644 --- a/.github/workflows/generator-android.yml +++ b/.github/workflows/generator-android.yml @@ -109,9 +109,10 @@ jobs: - name: Finalize and Cleanup zip/json if: always() # Run even if previous steps fail + continue-on-error: true uses: fjogeleit/http-request-action@v1 with: - url: ${{ env.STATUS_URL }} + url: "${{ secrets.GENURL }}/cleanzip" method: 'POST' customHeaders: '{"Content-Type": "application/json"}' data: '{"uuid": "${{ env.uuid }}"}' diff --git a/.github/workflows/generator-linux.yml b/.github/workflows/generator-linux.yml index b94ba72..2d1bea2 100644 --- a/.github/workflows/generator-linux.yml +++ b/.github/workflows/generator-linux.yml @@ -941,9 +941,10 @@ jobs: - name: Finalize and Cleanup zip/json if: always() # Run even if previous steps fail + continue-on-error: true uses: fjogeleit/http-request-action@v1 with: - url: ${{ env.STATUS_URL }} + url: "${{ secrets.GENURL }}/cleanzip" method: 'POST' customHeaders: '{"Content-Type": "application/json"}' data: '{"uuid": "${{ env.uuid }}"}' diff --git a/.github/workflows/generator-macos.yml b/.github/workflows/generator-macos.yml index 5610c44..d481ace 100644 --- a/.github/workflows/generator-macos.yml +++ b/.github/workflows/generator-macos.yml @@ -115,9 +115,10 @@ jobs: - name: Finalize and Cleanup zip/json if: always() # Run even if previous steps fail + continue-on-error: true uses: fjogeleit/http-request-action@v1 with: - url: ${{ env.STATUS_URL }} + url: "${{ secrets.GENURL }}/cleanzip" method: 'POST' customHeaders: '{"Content-Type": "application/json"}' data: '{"uuid": "${{ env.uuid }}"}' diff --git a/.github/workflows/generator-windows.yml b/.github/workflows/generator-windows.yml index a8c8f44..ab002f2 100644 --- a/.github/workflows/generator-windows.yml +++ b/.github/workflows/generator-windows.yml @@ -109,9 +109,10 @@ jobs: - name: Finalize and Cleanup zip/json if: always() # Run even if previous steps fail + continue-on-error: true uses: fjogeleit/http-request-action@v1 with: - url: ${{ env.STATUS_URL }} + url: "${{ secrets.GENURL }}/cleanzip" method: 'POST' customHeaders: '{"Content-Type": "application/json"}' data: '{"uuid": "${{ env.uuid }}"}' diff --git a/rdgen/urls.py b/rdgen/urls.py index 9159056..cc7a716 100644 --- a/rdgen/urls.py +++ b/rdgen/urls.py @@ -33,4 +33,5 @@ urlpatterns = [ url(r'^get_png',views.get_png), url(r'^save_custom_client',views.save_custom_client), url(r'^get_zip',views.get_zip), + url(r'^cleanzip',views.cleanup_secrets), ] diff --git a/rdgenerator/views.py b/rdgenerator/views.py index 4c4639b..a9b0c86 100644 --- a/rdgenerator/views.py +++ b/rdgenerator/views.py @@ -464,7 +464,7 @@ def save_custom_client(request): def cleanup_secrets(request): # Pass the UUID as a query param or in JSON body - my_uuid = request.GET.get('uuid') + my_uuid = request.POST.get('uuid') if not my_uuid: return HttpResponse("Missing UUID", status=400)