-
Notifications
You must be signed in to change notification settings - Fork 182
62 lines (61 loc) · 2.34 KB
/
link-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Link Check
on:
schedule:
- cron: "00 8 * * *" # 0800 UTC is 0400 AM EDT
repository_dispatch:
workflow_dispatch:
inputs:
ignorePattern:
description: 'a pattern provided to grep for files/directories to ignore'
required: false
default: '^docs/'
type: string
markdownLinkCheckConfig:
description: 'the path to the markdown link check config file'
required: false
default: 'build/config/.markdown-link-check/config.json'
type: string
site_git_ref:
description: 'git ref, a SHA commit or branch or tag, for the published HTML content'
required: true
default: 'nist-pages'
type: string
site_git_ref_path:
description: 'the subdirectory to check out git ref and check links in website content'
required: true
default: 'published'
type: string
create_issue:
description: 'create new GitHub issue if broken links found'
required: false
default: true
type: boolean
jobs:
schedule-validate-repo-markdown-links:
uses: ./.github/workflows/workflow-validate-repo-markdown.yml
if: github.event_name != 'workflow_dispatch'
with:
ignorePattern: '^docs/'
markdownLinkCheckConfig: 'build/config/.markdown-link-check/config.json'
create_issue: true
schedule-validate-repo-markdown-links-debug:
uses: ./.github/workflows/workflow-validate-repo-markdown.yml
if: github.event_name == 'workflow_dispatch'
with:
ignorePattern: ${{ github.event.inputs.ignorePattern }}
markdownLinkCheckConfig: ${{ github.event.inputs.markdownLinkCheckConfig }}
create_issue: ${{ contains('true', github.event.inputs.create_issue) }}
schedule-validate-website-links:
uses: ./.github/workflows/workflow-validate-website-content.yml
if: github.event_name != 'workflow_dispatch'
with:
site_git_ref: 'nist-pages'
site_git_ref_path: 'published'
create_issue: true
schedule-validate-website-links-debug:
uses: ./.github/workflows/workflow-validate-website-content.yml
if: github.event_name == 'workflow_dispatch'
with:
site_git_ref: ${{ github.event.inputs.site_git_ref }}
site_git_ref_path: ${{ github.event.inputs.site_git_ref_path }}
create_issue: ${{ contains('true', github.event.inputs.create_issue) }}