From 515e8da72df578cc1626fbe38db96869272caf4c Mon Sep 17 00:00:00 2001 From: Yash Date: Fri, 15 Mar 2024 11:03:40 +1100 Subject: [PATCH] Fix logical operator for branch check (#706) * liquibase manual deploy workflow * fixed lint * added cloud run files * fixed credentials typing * added exception * added cloud run config * fixed the image and updated commands * moved liquibase to Dockerfile * added workflow to trigger the schema update * added region param to workflow gcloud calls * added temp dir and cleaned code * amended job name on workflow * added job permissions for google auth * added gcs for cloud build logs * added branch check to restrict to main and dev * added branch check to restrict to main and dev * fixed logical operator for branch check --- .github/workflows/trigger_schema_updater.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger_schema_updater.yaml b/.github/workflows/trigger_schema_updater.yaml index 56668d1c5..7834640d7 100644 --- a/.github/workflows/trigger_schema_updater.yaml +++ b/.github/workflows/trigger_schema_updater.yaml @@ -24,7 +24,7 @@ jobs: - id: "branch-check" name: Fail if branch is not main or dev - if: github.event_name == 'workflow_dispatch' && (github.ref != 'refs/heads/main' || github.ref != 'refs/heads/dev') + if: github.event_name == 'workflow_dispatch' && (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev') run: | echo "This workflow should not be triggered with workflow_dispatch on a branch other than main or dev" exit 1