Skip to content

Use hugo version from netlify.toml #3

Use hugo version from netlify.toml

Use hugo version from netlify.toml #3

Workflow file for this run

name: Check Links
on:
pull_request: {}
jobs:
build-and-test-links:

Check failure on line 7 in .github/workflows/link-checker.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/link-checker.yaml

Invalid workflow file

You have an error in your yaml syntax on line 7
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# If your Hugo theme is a submodule, this ensures it gets pulled
submodules: true
- 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:
# - name: Install Theme
# run: |
# git clone https://github.com/username/your-hugo-theme.git themes/your-hugo-theme
- name: Build Hugo Site
run: hugo --minify
# Run the link checker on the generated site
- name: Check Links
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --no-progress --timeout 10s public/