From 65505fdb7f6ea8cf71371532c684d7f20813652d Mon Sep 17 00:00:00 2001 From: Vitalij Vascenko Date: Mon, 27 Jan 2025 14:28:12 +0100 Subject: [PATCH 1/2] ci: Add clean pattern --- .github/workflows/clean-azure-blob.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clean-azure-blob.yml b/.github/workflows/clean-azure-blob.yml index 422aca85..27e9afcd 100644 --- a/.github/workflows/clean-azure-blob.yml +++ b/.github/workflows/clean-azure-blob.yml @@ -25,4 +25,4 @@ jobs: uses: azure/CLI@v2 with: inlineScript: | - az storage blob delete-batch --source mews-ui-widgetbook --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login + az storage blob delete-batch --source mews-ui-widgetbook --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login --pattern "*" --dryrun From 6a8611820545b68597a25991f5b9e18f675d18ce Mon Sep 17 00:00:00 2001 From: Vitalij Vascenko Date: Mon, 27 Jan 2025 14:39:13 +0100 Subject: [PATCH 2/2] add debug controls --- .github/workflows/clean-azure-blob.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/clean-azure-blob.yml b/.github/workflows/clean-azure-blob.yml index 27e9afcd..488c97ed 100644 --- a/.github/workflows/clean-azure-blob.yml +++ b/.github/workflows/clean-azure-blob.yml @@ -21,8 +21,20 @@ jobs: tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: List blobs before cleanup + uses: azure/CLI@v2 + with: + inlineScript: | + az storage blob list --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --container-name mews-ui-widgetbook --output table + - name: Clean Widgetbook blob folder uses: azure/CLI@v2 with: inlineScript: | az storage blob delete-batch --source mews-ui-widgetbook --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login --pattern "*" --dryrun + + - name: List blobs after cleanup + uses: azure/CLI@v2 + with: + inlineScript: | + az storage blob list --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --container-name mews-ui-widgetbook --output table