diff --git a/.github/workflows/protect_release_branches.yml b/.github/workflows/protect_release_branches.yml index 8613a714..70c6b0d9 100644 --- a/.github/workflows/protect_release_branches.yml +++ b/.github/workflows/protect_release_branches.yml @@ -21,7 +21,7 @@ jobs: run: | target=${{ github.base_ref }} echo "Target is: $target" - if [[ $target == "v2.x" ]]; then + if [[ $target != "main" ]]; then echo "PRs must target main" exit 1 else