actions-hugo-link-check icon indicating copy to clipboard operation
actions-hugo-link-check copied to clipboard

GitHub Actions to check broken links for Hugo

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/[email protected]"
  env = {
    HUGO_OPTIONS = "--buildDrafts"
    OPTIONS = "-e 'http://localhost:8000'"
  }
}

License

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

About the author