Skip to content

Merge pull request #77 from kubereboot/dependabot/npm_and_yarn/postcs… #203

Merge pull request #77 from kubereboot/dependabot/npm_and_yarn/postcs…

Merge pull request #77 from kubereboot/dependabot/npm_and_yarn/postcs… #203

Workflow file for this run

name: lychee link Checker
on:
workflow_dispatch:
pull_request:
push:
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- uses: actions/[email protected]
with:
path: /tmp/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build
run: hugo --minify
- name: Restore lychee cache
uses: actions/[email protected]
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
uses: lycheeverse/lychee-action@ec3ed119d4f44ad2673a7232460dc7dff59d2421
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
# Check all markdown and html files in repo (default)
args: --verbose --exclude-link-local --no-progress './content/**' './public/**/*.html'
# Use json as output format (instead of markdown)
format: json
# Use different output file path
output: /tmp/foo.txt
# Fail action on broken links
fail: true