Skip to content

Commit 6029a90

Browse files
authored
Merge pull request #351 from Vimux/fix-ci-hugo-verbose-option
CI: fix verbose option for Hugo ≥0.114.0
2 parents c6cfa15 + fd7e3f1 commit 6029a90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎.github/workflows/ci-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ jobs:
6363
HUGO_VERSION=$(hugo version | grep -Eo '[0-9]+\.[0-9]+((\.[0-9]+)?)')
6464
# The option changed in 0.93.0: https://github.com/gohugoio/hugo/releases/tag/v0.93.0
6565
I18N_OPT=$([ $(ver $HUGO_VERSION) -lt $(ver 0.93.0) ] && echo "--i18n-warnings" || echo "--printI18nWarnings")
66-
HUGO_THEME="Mainroad" hugo --themesDir ../.. $I18N_OPT -v
66+
# The option deprecated in v0.114.0 (WARNs >= 0.120.0): https://github.com/gohugoio/hugo/releases/tag/v0.114.0
67+
LOG_OPT=$([ $(ver $HUGO_VERSION) -lt $(ver 0.114.0) ] && echo "--verbose" || echo "--logLevel info")
68+
HUGO_THEME="Mainroad" hugo --themesDir ../.. $I18N_OPT $LOG_OPT

0 commit comments

Comments
 (0)