Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

GitHub Actions to check broken links for Hugo

License

Notifications You must be signed in to change notification settings

peaceiris/actions-hugo-link-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license release GitHub release date

GitHub Actions to check broken links for Hugo

GitHub Actions to check broken links for Hugo

This action runs the following commands.

hugo server ${HUGO_OPTIONS} &
# wait for starting hugo server (time out 5 min)
muffet ${OPTIONS} http://localhost:1313

Getting started

Create main.workflow

workflow "Main workflow" {
  on = "push"
  resolves = ["hugo-link-check"]
}

action "hugo-link-check" {
  uses = "peaceiris/actions-hugo-link-check@v0.56.3"
  env = {
    HUGO_OPTIONS = "--buildDrafts"
    OPTIONS = "-e 'http://localhost:8000'"
  }
}

License

MIT License - peaceiris/actions-hugo-link-check

About the author