File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ jobs:
2020 DATABRICKS_TOKEN : ${{ secrets.DATABRICKS_TOKEN }}
2121 DATABRICKS_PROFILE : dev-github
2222 DBT_DEV_HTTP_PATH : ${{ secrets.DBT_DEV_HTTP_PATH }}
23- AZURE_STORAGE_ACCOUNT : sarescuedev
23+ AZURE_STORAGE_ACCOUNT : ${{ vars.AZURE_STORAGE_ACCOUNT }}
2424 AZURE_STORAGE_CONTAINER : ' $web'
2525 AZURE_BLOB_PATH : ' dabdbt/index.html'
2626 AZURE_BLOB_CONTENT_TYPE : ' text/html; charset=utf-8'
2727 AZURE_BLOB_CONTENT_DISPOSITION : inline
28+ AZURE_SUBSCRIPTION_ID : ' ${{ secrets.AZURE_SUBSCRIPTION_ID }}'
2829
2930 steps :
3031 - name : Checkout
@@ -77,13 +78,19 @@ jobs:
7778 with :
7879 creds : ${{ secrets.AZURE_CREDENTIALS }}
7980
81+ - name : Set Azure subscription
82+ if : env.AZURE_SUBSCRIPTION_ID != ''
83+ run : |
84+ az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
85+
8086 - name : Fix static website MIME metadata
8187 run : |
8288 az storage blob update \
8389 --account-name "${AZURE_STORAGE_ACCOUNT}" \
8490 --container-name "${AZURE_STORAGE_CONTAINER}" \
8591 --name "${AZURE_BLOB_PATH}" \
8692 --content-type "${AZURE_BLOB_CONTENT_TYPE}" \
87- --content-disposition "${AZURE_BLOB_CONTENT_DISPOSITION}"
93+ --content-disposition "${AZURE_BLOB_CONTENT_DISPOSITION}" \
94+ --auth-mode login
8895
8996
You can’t perform that action at this time.
0 commit comments