Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ivytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaase committed Feb 21, 2024
2 parents b8c1326 + 067f617 commit 3bf0a38
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/delete-web-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Delete Preview Build

on:
pull_request:
types: [closed]

permissions:
contents: read
id-token: write
pages: write
pull-requests: write

jobs:
azure_blob:
runs-on: ubuntu-latest
env:
AZURE_STORAGE_ACCOUNT: measuremaxmature
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_SAS_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
- name: Install Azure CLI
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- name: Delete old blobs
run: az storage blob delete-batch -s '$web' --pattern "$BRANCH_NAME/*"
7 changes: 7 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches: [main]
pull_request:

# If another web build starts for the same branch, cancel the previous build. This
# protects us from two builds trying to upload at the same time and clobbering each
# other.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
pages: write
Expand Down

0 comments on commit 3bf0a38

Please sign in to comment.