Skip to content

Commit

Permalink
Merge pull request #351 from Vimux/fix-ci-hugo-verbose-option
Browse files Browse the repository at this point in the history
CI: fix verbose option for Hugo ≥0.114.0
  • Loading branch information
Vimux authored Nov 13, 2023
2 parents c6cfa15 + fd7e3f1 commit 6029a90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6029a90

Please sign in to comment.