Skip to content

Commit 73d3428

Browse files
authored
build: fail if PR is made to non-main branch (#1681)
1 parent e96fd85 commit 73d3428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/protect_release_branches.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
target=${{ github.base_ref }}
2323
echo "Target is: $target"
24-
if [[ $target == "v2.x" ]]; then
24+
if [[ $target != "main" ]]; then
2525
echo "PRs must target main"
2626
exit 1
2727
else

0 commit comments

Comments
 (0)