Skip to content

Commit cbe2b4e

Browse files
committed
fix delete zip issue
1 parent 3c312da commit cbe2b4e

6 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/generator-android.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ jobs:
109109
110110
- name: Finalize and Cleanup zip/json
111111
if: always() # Run even if previous steps fail
112+
continue-on-error: true
112113
uses: fjogeleit/http-request-action@v1
113114
with:
114-
url: ${{ env.STATUS_URL }}
115+
url: "${{ secrets.GENURL }}/cleanzip"
115116
method: 'POST'
116117
customHeaders: '{"Content-Type": "application/json"}'
117118
data: '{"uuid": "${{ env.uuid }}"}'

.github/workflows/generator-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,9 +941,10 @@ jobs:
941941
942942
- name: Finalize and Cleanup zip/json
943943
if: always() # Run even if previous steps fail
944+
continue-on-error: true
944945
uses: fjogeleit/http-request-action@v1
945946
with:
946-
url: ${{ env.STATUS_URL }}
947+
url: "${{ secrets.GENURL }}/cleanzip"
947948
method: 'POST'
948949
customHeaders: '{"Content-Type": "application/json"}'
949950
data: '{"uuid": "${{ env.uuid }}"}'

.github/workflows/generator-macos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ jobs:
115115
116116
- name: Finalize and Cleanup zip/json
117117
if: always() # Run even if previous steps fail
118+
continue-on-error: true
118119
uses: fjogeleit/http-request-action@v1
119120
with:
120-
url: ${{ env.STATUS_URL }}
121+
url: "${{ secrets.GENURL }}/cleanzip"
121122
method: 'POST'
122123
customHeaders: '{"Content-Type": "application/json"}'
123124
data: '{"uuid": "${{ env.uuid }}"}'

.github/workflows/generator-windows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ jobs:
109109
110110
- name: Finalize and Cleanup zip/json
111111
if: always() # Run even if previous steps fail
112+
continue-on-error: true
112113
uses: fjogeleit/http-request-action@v1
113114
with:
114-
url: ${{ env.STATUS_URL }}
115+
url: "${{ secrets.GENURL }}/cleanzip"
115116
method: 'POST'
116117
customHeaders: '{"Content-Type": "application/json"}'
117118
data: '{"uuid": "${{ env.uuid }}"}'

rdgen/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@
3333
url(r'^get_png',views.get_png),
3434
url(r'^save_custom_client',views.save_custom_client),
3535
url(r'^get_zip',views.get_zip),
36+
url(r'^cleanzip',views.cleanup_secrets),
3637
]

rdgenerator/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def save_custom_client(request):
464464

465465
def cleanup_secrets(request):
466466
# Pass the UUID as a query param or in JSON body
467-
my_uuid = request.GET.get('uuid')
467+
my_uuid = request.POST.get('uuid')
468468

469469
if not my_uuid:
470470
return HttpResponse("Missing UUID", status=400)

0 commit comments

Comments
 (0)