ci: reset working directory between cherrypick labels (#9656)

This commit is contained in:
Alvin Huang 2021-01-27 15:51:12 -05:00 committed by GitHub
parent f561462064
commit 6cb0482db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ for label in $labels; do
cherry_pick_with_slack_notification "$branch" "$CIRCLE_SHA1" "$pr_url" cherry_pick_with_slack_notification "$branch" "$CIRCLE_SHA1" "$pr_url"
backport_failures=$((backport_failures + "$?")) backport_failures=$((backport_failures + "$?"))
fi fi
# reset the working directory for the next label
git reset --hard
done done
if [ "$backport_failures" -ne 0 ]; then if [ "$backport_failures" -ne 0 ]; then