[BACKPORT 1.1] chore: make pre-check work on release-* branches
#2711
+3
−3
release-* branches
#2711