Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Vimux/Binario.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoam Lerner <noamler@fb.com>2022-03-10 22:13:28 +0300
committerNoam Lerner <noamler@fb.com>2022-03-14 22:31:41 +0300
commitb30ec254c8c84576ebbcb6c9fffe3a37e0593cb6 (patch)
treecd8a86f9740cda200b1974c8ba05eff0e0bf0d5b
parent2b03419d526ee21e2a325932c96b79d994782dcb (diff)
Replace --i18n-warnings with --printI18nWarnings for new hugo versions in CI
-rw-r--r--.github/workflows/ci-test.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml
index 14e7987..9eb3c16 100644
--- a/.github/workflows/ci-test.yml
+++ b/.github/workflows/ci-test.yml
@@ -42,6 +42,7 @@ jobs:
- '0.76.5' # https://github.com/gohugoio/hugo/issues/7822
# - '0.80.0' # https://github.com/gohugoio/hugo/issues/8340
- '0.86.1' # https://github.com/gohugoio/hugo/issues/9150
+ - '0.93.3' # https://github.com/gohugoio/hugo/commit/837fdfdf45014e3d5ef3b00b01548b68a4489c5f
- 'latest'
fail-fast: true
@@ -57,4 +58,9 @@ jobs:
- name: Build with Hugo ${{ matrix.hugo }}
working-directory: exampleSite
- run: HUGO_THEME="Binario" hugo --themesDir ../.. --i18n-warnings -v
+ run: |
+ function ver { printf "%03d%03d%03d" $(echo "$1" | tr '.' ' '); }
+ HUGO_VERSION=$(hugo version | grep -Eo '[0-9]\.[0-9]+\.[0-9]+')
+ # The option changed in 0.93.0: https://github.com/gohugoio/hugo/releases/tag/v0.93.0
+ I18N_OPT=$([ $(ver $HUGO_VERSION) -lt $(ver 0.93.0) ] && echo "--i18n-warnings" || echo "--printI18nWarnings")
+ HUGO_THEME="Binario" hugo --themesDir ../.. $I18N_OPT -v