diff --git a/.github/workflows/add-lang.yml b/.github/workflows/add-lang.yml index 7d092523f..c9c2c0ab9 100644 --- a/.github/workflows/add-lang.yml +++ b/.github/workflows/add-lang.yml @@ -19,7 +19,7 @@ jobs: run: | LANG_CODE=$(sed 's/.*\[\([^]]*\)].*/\1/' <<< "$ISSUE_TITLE") FULL_LANG=$(sed 's/.*<\([^>]*\)>.*/\1/' <<< "$ISSUE_TITLE") - if [[ $LANG_CODE =~ ^[a-z]{2}(-[A-Z]{2})?$ && $ISSUE_TITLE =~ <[^>]+> ]]; then + if [[ "$LANG_CODE" =~ ^[a-z]{2}(-[A-Z]{2})?$ && "$ISSUE_TITLE" =~ <[^>]+> ]]; then echo "lang_code=$LANG_CODE" >> $GITHUB_ENV echo "full_lang=$FULL_LANG" >> $GITHUB_ENV echo "issue_num=$ISSUE_NUM" >> $GITHUB_ENV