Skip to content

Commit

Permalink
Use hugo version from netlify.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Dec 19, 2024
1 parent d4661da commit 1ca2b39
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ jobs:
# If your Hugo theme is a submodule, this ensures it gets pulled
submodules: true

- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '136.4'
- name: Read hugo version
id: hugo-version
run: |
. ./netlify.toml
echo "HUGO_VERSION=${HUGO_VERSION}" >> "${GITHUB_OUTPUT}"
echo ${HUGO_VERSION}
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}'

# If you have a custom install step for themes beyond submodules, do it here
# For example, if your theme is not a submodule but you need to download it:
Expand Down

0 comments on commit 1ca2b39

Please sign in to comment.