Skip to content

marojor/hugo-broken-link-checker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hugo Broken Link Action

This action takes a github repo, builds a Hugo site and crawl it looking for broken links.

It's inspired in https://github.com/marccampbell/hugo-linkcheck-action but a tad more up-to-date and using https://github.com/filiph/linkcheck instead of https://github.com/stevenvachon/broken-link-checker.

Quick Start

Add the following workflow to your repo:

name: Hugo broken link check

on:
  pull_request:
    branches:
      - main

jobs:
  broken-link-check:
    runs-on: ubuntu-latest
    name: Check for broken links
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        fetch-depth: 1
    - name: Check for broken Links
      uses: marojor/[email protected]
      with:
        skip-file: 'skip-rules-for-broken-links-check.txt'

About

GitHub Action to check from broken links in an Hugo site

Resources

License

Stars

Watchers

Forks

Packages

No packages published