This action uses: https://github.com/stevenvachon/broken-link-checker
Find broken links in your website.
Create a new file in your repository .github/workflows/action.yml.
Copy-paste the following workflow in your action.yml file:
name: Broken link check
on: [push]
jobs:
broken_link_checker_job:
runs-on: ubuntu-latest
name: Check for broken links
steps:
- name: Check for broken links
id: link-report
uses: celinekurpershoek/github-actions-link-checker@{version}
with:
# Required:
url: 'https://...'
# optional:
honorRobotExclusions: false
ignorePatterns: 'github,google'
- name: Get the result
run: echo "${{steps.link-report.outputs.result}}"
Type: Boolean
Default value: true
The script does not scan pages that search engine crawlers would not follow.
https://github.com/stevenvachon/broken-link-checker#honorrobotexclusions
type: String
Default value: ''
A comma separted string of matched urls to ignore. Check documentation about patterns here: https://github.com/stevenvachon/broken-link-checker#excludedkeywords
- Create issue if broken urls are found
- Parse each broken link in report on new line
There is a broken link in this document as a test: A broken link