Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add clean pattern #730

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/clean-azure-blob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Loading