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 1379b5f7d6
commit 5a4a6d10f1
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"
backport_failures=$((backport_failures + "$?"))
fi
# reset the working directory for the next label
git reset --hard
done
if [ "$backport_failures" -ne 0 ]; then