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