Skip to content

Commit

Permalink
ci/bug: fix the label format list (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq authored Mar 16, 2024
2 parents 217d7b0 + dbd3121 commit 7dac887
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7dac887

Please sign in to comment.