From 1ca2b391f54c1eddd9a3ce31a9cc07f0960b937d Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Thu, 19 Dec 2024 11:15:32 -0600 Subject: [PATCH] Use hugo version from netlify.toml --- .github/workflows/link-checker.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index d97bae8..31a73a7 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -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: