Skip to content

Bump lycheeverse/lychee-action from 2.0.1 to 2.0.2 #392

Bump lycheeverse/lychee-action from 2.0.1 to 2.0.2

Bump lycheeverse/lychee-action from 2.0.1 to 2.0.2 #392

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@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm install
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- uses: actions/cache@v4.1.1
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/cache@v4.1.1
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
uses: lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede
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