Do a checkout of compared branches to ensure prepush checks work (#34706)
This commit is contained in:
parent
53b8213bd8
commit
8478993095
|
@ -31,4 +31,8 @@ if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure both branches are tracked or check-changelogger-use will fail.
|
||||||
|
git checkout $PROTECTED_BRANCH --quiet
|
||||||
|
git checkout $CURRENT_BRANCH --quiet
|
||||||
|
|
||||||
php tools/monorepo/check-changelogger-use.php $PROTECTED_BRANCH $CURRENT_BRANCH
|
php tools/monorepo/check-changelogger-use.php $PROTECTED_BRANCH $CURRENT_BRANCH
|
||||||
|
|
Loading…
Reference in New Issue