Skip to content

Commit

Permalink
Fix logical operator for branch check (#706)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nevoodoo authored Mar 15, 2024
1 parent f94cc51 commit 515e8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/trigger_schema_updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 515e8da

Please sign in to comment.