Skip to content
alert-circle

GitHub Action

Hugo Internal Broken Link Checker

v1.1.0 Latest version

Hugo Internal Broken Link Checker

alert-circle

Hugo Internal Broken Link Checker

Finds internal broken links in a Hugo site

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Hugo Internal Broken Link Checker

uses: marojor/hugo-broken-link-checker@v1.1.0

Learn more about this action in marojor/hugo-broken-link-checker

Choose a version

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/hugo-broken-link-checker@v1.0.5
      with:
        skip-file: 'skip-rules-for-broken-links-check.txt'