diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index 26541cb..9bd6305 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -48,7 +48,12 @@ jobs: parsed_labels="" for label in "${supported_labels[@]}"; do if [[ $title == *"${label}"* ]]; then - parsed_labels="${parsed_labels}${label};" + if [[ $parsed_labels == "" ]]; then + # Cover init case + parsed_labels="${label}" + else + parsed_labels="${parsed_labels},${label}" + fi echo "Added label ${label}" fi done