Skip to content

Commit

Permalink
Fixup retrieve var from toml
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Dec 19, 2024
1 parent f499188 commit 96a415a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96a415a

Please sign in to comment.