From ff266270677a4a6a47d7122687e75bb1b9d23ce2 Mon Sep 17 00:00:00 2001 From: vimux Date: Sun, 12 Nov 2023 14:08:45 -0500 Subject: [PATCH] =?UTF-8?q?CI:=20fix=20verbose=20option=20for=20Hugo=20?= =?UTF-8?q?=E2=89=A50.114.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From Hugo v0.114.0 `--verbose` option has been deprecated in favor of `--logLevel info`. Deprecated option causes warning since v0.120.0 --- .github/workflows/ci-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index e2d5f96..89867e4 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -63,4 +63,6 @@ jobs: 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 + # The option deprecated in v0.114.0 (WARNs >= 0.120.0): https://github.com/gohugoio/hugo/releases/tag/v0.114.0 + LOG_OPT=$([ $(ver $HUGO_VERSION) -lt $(ver 0.114.0) ] && echo "--verbose" || echo "--logLevel info") + HUGO_THEME="Binario" hugo --themesDir ../.. $I18N_OPT $LOG_OPT