Skip to content

Commit 5a4da1d

Browse files
committed
conditional check edited
1 parent a2c32ca commit 5a4da1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
GCP_VMUSER: ${{ secrets.GCP_VMUSER }}
243243
GCP_INSTANCE_NAME: ${{ secrets.GCP_INSTANCE_NAME }}
244244
GCP_INSTANCE_ZONE: ${{ secrets.GCP_INSTANCE_ZONE }}
245-
if: env.azure_status != 'available' || env.azure_status != 'success'
245+
if: env.azure_status != 'success'
246246
run: |
247247
echo "Deploying to GCP because Azure return VM instance: busy/failure/unknown"
248248
@@ -367,7 +367,7 @@ jobs:
367367
GCP_SECRETS_FILE: ${{ secrets.GCP_SECRETS_FILE }}
368368
GITHUB_REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
369369
GITHUB_BRANCH: "enhance-v1"
370-
if: env.azure_status != 'available' || env.azure_status != 'success' && env.gcp_status == 'available'
370+
if: env.azure_status != 'success' && env.gcp_status == 'available'
371371
run: |
372372
echo "Deploying App to GCP VM"
373373

0 commit comments

Comments
 (0)