From bdc911ea4e8b8ffa79b6efe598de96045430244f Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Thu, 9 May 2024 10:39:46 +0200 Subject: [PATCH] fall back to the working solution --- .github/workflows/check-full.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-full.yaml b/.github/workflows/check-full.yaml index 36a788509..98d6815ac 100644 --- a/.github/workflows/check-full.yaml +++ b/.github/workflows/check-full.yaml @@ -38,15 +38,17 @@ jobs: R_KEEP_PKG_SOURCE: yes steps: - - name: Set locale + - name: Set 'en_US' locale + if: matrix.config.locale == 'en_US' run: | - if [ -z "${{ matrix.config.locale }}" ] || [ "${{ matrix.config.locale }}" == "en_US" ]; then - sudo locale-gen en_US - echo "LC_ALL=en_US" >> $GITHUB_ENV - elif [ "${{ matrix.config.locale }}" == "zh_CN" ]; then - sudo locale-gen zh_CN - echo "LC_ALL=zh_CN" >> $GITHUB_ENV - fi + sudo locale-gen en_US + echo "LC_ALL=en_US" >> $GITHUB_ENV + + - name: Set 'zh_CN' locale + if: matrix.config.locale == 'zh_CN' + run: | + sudo locale-gen zh_CN + echo "LC_ALL=zh_CN" >> $GITHUB_ENV - uses: actions/checkout@v4