diff --git a/.circleci/scripts/cherry-picker.sh b/.circleci/scripts/cherry-picker.sh index 3ff162699..f5aa8f048 100755 --- a/.circleci/scripts/cherry-picker.sh +++ b/.circleci/scripts/cherry-picker.sh @@ -95,8 +95,8 @@ for label in $labels; do git config --local user.email "hashicorp-ci@users.noreply.github.com" git config --local user.name "hashicorp-ci" status "checking label: $label" - # if the label matches docs*, it will attempt to cherry-pick to stable-website - if [[ $label =~ docs* ]]; then + # if the label matches docs-cherrypick, it will attempt to cherry-pick to stable-website + if [[ $label == docs-cherrypick ]]; then status "backporting to stable-website" branch="stable-website" cherry_pick_with_slack_notification $branch $CIRCLE_SHA1 $pr_url @@ -108,4 +108,4 @@ for label in $labels; do cherry_pick_with_slack_notification $branch $CIRCLE_SHA1 $pr_url git push origin $branch fi -done \ No newline at end of file +done