mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-21 13:48:29 +00:00
CI: fix verbose option for Hugo ≥0.114.0
From Hugo v0.114.0 `--verbose` option has been deprecated in favor of `--logLevel info`. Deprecated option causes warning since v0.120.0
This commit is contained in:
parent
b9a299ce62
commit
ff26627067
1 changed files with 3 additions and 1 deletions
4
.github/workflows/ci-test.yml
vendored
4
.github/workflows/ci-test.yml
vendored
|
@ -63,4 +63,6 @@ jobs:
|
||||||
HUGO_VERSION=$(hugo version | grep -Eo '[0-9]\.[0-9]+\.[0-9]+')
|
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
|
# 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")
|
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
|
||||||
|
|
Loading…
Reference in a new issue