diff --git a/.github/workflows/code_freeze.yml b/.github/workflows/code_freeze.yml index 5640bc01b69..16128a39938 100644 --- a/.github/workflows/code_freeze.yml +++ b/.github/workflows/code_freeze.yml @@ -11,4 +11,4 @@ jobs: steps: - name: Fail if Code Freeze is enabled run: | - exit 0 + exit 1 diff --git a/tools/code_freeze.sh b/tools/code_freeze.sh index 7537ffbb13c..8e4f3ec12a6 100755 --- a/tools/code_freeze.sh +++ b/tools/code_freeze.sh @@ -34,7 +34,7 @@ freeze=$1 branch=$2 code_freeze_workflow="./.github/workflows/code_freeze.yml" -if [ "$freeze" != "freeze" && "$freeze" != "unfreeze" ]; then +if [[ "$freeze" != "freeze" && "$freeze" != "unfreeze" ]]; then echo "the first argument must be either 'freeze' or 'unfreeze'" exit 1 fi