From 96a415af82195d6b64544a5d7c6e0631edf70b56 Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Thu, 19 Dec 2024 11:21:22 -0600 Subject: [PATCH] Fixup retrieve var from toml --- .github/workflows/link-checker.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 57522e2..2ceabe5 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -16,9 +16,9 @@ jobs: - name: Read hugo version id: hugo-version run: | - . ./netlify.toml - echo "HUGO_VERSION=${HUGO_VERSION}" >> "${GITHUB_OUTPUT}" + HUGO_VERSION=$(grep 'HUGO_VERSION' netlify.toml | sed -E 's/.*=\s*"([^"]+)".*/\1/') echo ${HUGO_VERSION} + echo "HUGO_VERSION=${HUGO_VERSION}" >> "${GITHUB_OUTPUT}" - name: Setup Hugo uses: peaceiris/actions-hugo@v3