Do a checkout of compared branches to ensure prepush checks work (#34706)

This commit is contained in:
Sam Seay 2022-09-19 12:58:52 +12:00 committed by GitHub
parent 53b8213bd8
commit 8478993095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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