Skip to content

Commit 36fd458

Browse files
committed
Allow releasing from 3.x branch
1 parent 73de0ff commit 36fd458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ main() {
102102
exit 1
103103
fi
104104

105-
if [ "$(branch_name)" != "main" ]; then
106-
echo "Error: can only make a release on the main branch"
105+
if [[ "$(branch_name)" != "main" && "$(branch_name)" != "3.x" ]]; then
106+
echo "Error: can only make a release on the main or 3.x branch"
107107
exit 1
108108
fi
109109

0 commit comments

Comments
 (0)