Skip to content

Commit 5cff9d1

Browse files
updated bash statement
1 parent 0ef48fb commit 5cff9d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tasks/dbt-manifest-clone/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
uses: azure/CLI@v1
3030
with:
3131
inlineScript: |
32-
if (az storage blob exists --container-name 'manifests' --name ${{ inputs.snowflake-source-database }}_manifest.json --account-name ${{ inputs.storage-account }} --auth-mode login)
32+
if $(az storage blob exists --container-name 'manifests' --name ${{ inputs.snowflake-source-database }}_manifest.json --account-name ${{ inputs.storage-account }} --query exists --auth-mode login)
3333
then
3434
echo " ==> DBT manifest exists in the container, copying file"
3535
az storage blob copy start \

tasks/dbt-manifest-destroy/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
uses: azure/CLI@v1
2727
with:
2828
inlineScript: |
29-
if (az storage blob exists --container-name 'manifests' --name ${{ inputs.snowflake-target-database }}_manifest.json --account-name ${{ inputs.storage-account }} --auth-mode login)
29+
if $(az storage blob exists --container-name 'manifests' --name ${{ inputs.snowflake-target-database }}_manifest.json --account-name ${{ inputs.storage-account }} --query exists --auth-mode login)
3030
then
3131
echo " ==> DBT manifest exists in the container, deleting file"
3232
az storage blob delete \

tasks/dbt-manifest-download/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
uses: azure/CLI@v1
3333
with:
3434
inlineScript: |
35-
if (az storage blob exists --container-name 'manifests' --name ${{ inputs.snowflake-target-database }}_manifest.json --account-name ${{ inputs.storage-account }} --auth-mode login)
35+
if $(az storage blob exists --container-name 'manifests' --name ${{ inputs.snowflake-target-database }}_manifest.json --account-name ${{ inputs.storage-account }} --query exists --auth-mode login)
3636
then
3737
echo " ==> DBT manifest exists in the container, downloading"
3838
az storage blob download --account-name ${{ inputs.storage-account }} --auth-mode login --container 'manifests' --name '${{ inputs.snowflake-target-database }}_manifest.json' --file '${{ inputs.working-directory }}/manifest.json'

0 commit comments

Comments
 (0)