Skip to content

Commit

Permalink
Add broken link check
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Nov 3, 2021
1 parent 72a3e57 commit e470ea8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: github pages

on:
workflow_dispatch:
push:
branches:
- next-major-release
Expand All @@ -26,3 +27,20 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

broken_link_checker_job:
runs-on: ubuntu-latest
name: Check for broken links
steps:
- name: Check for broken links
id: link-report
uses: celinekurpershoek/link-checker@v1.0.1
with:
# Required:
url: 'https://opm.github.io/ResInsight-UserDocumentation/'
# optional:
honorRobotExclusions: false
ignorePatterns: ''
recursiveLinks: false # Check all URLs on all reachable pages (could take a while)
- name: Get the result
run: echo "${{steps.link-report.outputs.result}}"

0 comments on commit e470ea8

Please sign in to comment.