Skip to content

Commit 754d919

Browse files
commit pr conflicts
1 parent 183b8be commit 754d919

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/azure-dev.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Azure Dev Deploy
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
85

96
permissions:
107
contents: read
@@ -46,6 +43,8 @@ jobs:
4643
- name: Provision and Deploy
4744
shell: bash
4845
run: |
49-
azd env new "$AZURE_ENV_NAME" --subscription "$AZURE_SUBSCRIPTION_ID" --location "$AZURE_LOCATION" --no-prompt || azd env select "$AZURE_ENV_NAME"
46+
if ! azd env select "$AZURE_ENV_NAME"; then
47+
azd env new "$AZURE_ENV_NAME" --subscription "$AZURE_SUBSCRIPTION_ID" --location "$AZURE_LOCATION" --no-prompt
48+
fi
5049
azd config set defaults.subscription "$AZURE_SUBSCRIPTION_ID"
5150
azd up --no-prompt

0 commit comments

Comments
 (0)