Skip to content

Commit

Permalink
ci: [DX-3555] Add Azure cleanup workflow (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Dec 5, 2024
1 parent bf3d190 commit 1f90737
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/clean-azure-blob.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: clean-azure-blob
on:
workflow_dispatch:

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
deploy_widgetbook_azure:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID}}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- 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 --dryrun

0 comments on commit 1f90737

Please sign in to comment.