Skip to content

Commit 15cf8f5

Browse files
fixes set locale step?
1 parent 93718ef commit 15cf8f5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/check-full.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ jobs:
3939

4040
steps:
4141
- name: Set locale
42-
env:
43-
OVERRIDE_LOCALE: "${{ matrix.config.locale }}"
44-
run: echo $OVERRIDE_LOCALE >> $GITHUB_ENV
42+
run: |
43+
if [ "${{ matrix.config.locale }}" == "en_US" ]; then
44+
sudo locale-gen en_US
45+
echo "LC_ALL=en_US" >> $GITHUB_ENV
46+
elif [ "${{ matrix.config.locale }}" == "zh_CN" ]; then
47+
sudo locale-gen zh_CN
48+
echo "LC_ALL=zh_CN" >> $GITHUB_ENV
49+
fi
4550
4651
- uses: actions/checkout@v4
4752

0 commit comments

Comments
 (0)