fix delete zip issue
This commit is contained in:
3
.github/workflows/generator-android.yml
vendored
3
.github/workflows/generator-android.yml
vendored
@@ -109,9 +109,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Finalize and Cleanup zip/json
|
- name: Finalize and Cleanup zip/json
|
||||||
if: always() # Run even if previous steps fail
|
if: always() # Run even if previous steps fail
|
||||||
|
continue-on-error: true
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.STATUS_URL }}
|
url: "${{ secrets.GENURL }}/cleanzip"
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
customHeaders: '{"Content-Type": "application/json"}'
|
customHeaders: '{"Content-Type": "application/json"}'
|
||||||
data: '{"uuid": "${{ env.uuid }}"}'
|
data: '{"uuid": "${{ env.uuid }}"}'
|
||||||
|
|||||||
3
.github/workflows/generator-linux.yml
vendored
3
.github/workflows/generator-linux.yml
vendored
@@ -941,9 +941,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Finalize and Cleanup zip/json
|
- name: Finalize and Cleanup zip/json
|
||||||
if: always() # Run even if previous steps fail
|
if: always() # Run even if previous steps fail
|
||||||
|
continue-on-error: true
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.STATUS_URL }}
|
url: "${{ secrets.GENURL }}/cleanzip"
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
customHeaders: '{"Content-Type": "application/json"}'
|
customHeaders: '{"Content-Type": "application/json"}'
|
||||||
data: '{"uuid": "${{ env.uuid }}"}'
|
data: '{"uuid": "${{ env.uuid }}"}'
|
||||||
|
|||||||
3
.github/workflows/generator-macos.yml
vendored
3
.github/workflows/generator-macos.yml
vendored
@@ -115,9 +115,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Finalize and Cleanup zip/json
|
- name: Finalize and Cleanup zip/json
|
||||||
if: always() # Run even if previous steps fail
|
if: always() # Run even if previous steps fail
|
||||||
|
continue-on-error: true
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.STATUS_URL }}
|
url: "${{ secrets.GENURL }}/cleanzip"
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
customHeaders: '{"Content-Type": "application/json"}'
|
customHeaders: '{"Content-Type": "application/json"}'
|
||||||
data: '{"uuid": "${{ env.uuid }}"}'
|
data: '{"uuid": "${{ env.uuid }}"}'
|
||||||
|
|||||||
3
.github/workflows/generator-windows.yml
vendored
3
.github/workflows/generator-windows.yml
vendored
@@ -109,9 +109,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Finalize and Cleanup zip/json
|
- name: Finalize and Cleanup zip/json
|
||||||
if: always() # Run even if previous steps fail
|
if: always() # Run even if previous steps fail
|
||||||
|
continue-on-error: true
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.STATUS_URL }}
|
url: "${{ secrets.GENURL }}/cleanzip"
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
customHeaders: '{"Content-Type": "application/json"}'
|
customHeaders: '{"Content-Type": "application/json"}'
|
||||||
data: '{"uuid": "${{ env.uuid }}"}'
|
data: '{"uuid": "${{ env.uuid }}"}'
|
||||||
|
|||||||
@@ -33,4 +33,5 @@ urlpatterns = [
|
|||||||
url(r'^get_png',views.get_png),
|
url(r'^get_png',views.get_png),
|
||||||
url(r'^save_custom_client',views.save_custom_client),
|
url(r'^save_custom_client',views.save_custom_client),
|
||||||
url(r'^get_zip',views.get_zip),
|
url(r'^get_zip',views.get_zip),
|
||||||
|
url(r'^cleanzip',views.cleanup_secrets),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ def save_custom_client(request):
|
|||||||
|
|
||||||
def cleanup_secrets(request):
|
def cleanup_secrets(request):
|
||||||
# Pass the UUID as a query param or in JSON body
|
# 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:
|
if not my_uuid:
|
||||||
return HttpResponse("Missing UUID", status=400)
|
return HttpResponse("Missing UUID", status=400)
|
||||||
|
|||||||
Reference in New Issue
Block a user