From fd7e3f1dc91af1d8504282c12c104cbf2da6ecba Mon Sep 17 00:00:00 2001 From: vimux Date: Mon, 13 Nov 2023 11:47:30 -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 a07bff4d..a1fe231e 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="Mainroad" 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="Mainroad" hugo --themesDir ../.. $I18N_OPT $LOG_OPT