Skip to content

Commit 4edbedc

Browse files
authored
Fix add-lang script (#1020)
1 parent 1f777ab commit 4edbedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/add-lang.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
LANG_CODE=$(sed 's/.*\[\([^]]*\)].*/\1/' <<< "$ISSUE_TITLE")
2121
FULL_LANG=$(sed 's/.*<\([^>]*\)>.*/\1/' <<< "$ISSUE_TITLE")
22-
if [[ $LANG_CODE =~ ^[a-z]{2}(-[A-Z]{2})?$ && $ISSUE_TITLE =~ <[^>]+> ]]; then
22+
if [[ "$LANG_CODE" =~ ^[a-z]{2}(-[A-Z]{2})?$ && "$ISSUE_TITLE" =~ <[^>]+> ]]; then
2323
echo "lang_code=$LANG_CODE" >> $GITHUB_ENV
2424
echo "full_lang=$FULL_LANG" >> $GITHUB_ENV
2525
echo "issue_num=$ISSUE_NUM" >> $GITHUB_ENV

0 commit comments

Comments
 (0)