Skip to content

Commit e470ea8

Browse files
authored
Add broken link check
1 parent 72a3e57 commit e470ea8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: github pages
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- next-major-release
@@ -26,3 +27,20 @@ jobs:
2627
with:
2728
github_token: ${{ secrets.GITHUB_TOKEN }}
2829
publish_dir: ./public
30+
31+
broken_link_checker_job:
32+
runs-on: ubuntu-latest
33+
name: Check for broken links
34+
steps:
35+
- name: Check for broken links
36+
id: link-report
37+
uses: celinekurpershoek/link-checker@v1.0.1
38+
with:
39+
# Required:
40+
url: 'https://opm.github.io/ResInsight-UserDocumentation/'
41+
# optional:
42+
honorRobotExclusions: false
43+
ignorePatterns: ''
44+
recursiveLinks: false # Check all URLs on all reachable pages (could take a while)
45+
- name: Get the result
46+
run: echo "${{steps.link-report.outputs.result}}"

0 commit comments

Comments
 (0)