-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
57 lines (53 loc) · 1.66 KB
/
Copy pathaction.yml
File metadata and controls
57 lines (53 loc) · 1.66 KB
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
name: 'urldn-link-check'
description: 'Scan Markdown docs for broken links, redirect chains, insecure HTTP links, and excessively long URLs.'
author: 'URLDN'
branding:
icon: 'link-2'
color: 'blue'
inputs:
path:
description: 'Directory or glob to scan for Markdown/MDX files.'
required: false
default: 'docs'
fail-on-broken:
description: 'Fail the workflow if broken links are found.'
required: false
default: 'true'
fail-on-redirect:
description: 'Fail the workflow if redirect chains are found.'
required: false
default: 'false'
fail-on-http:
description: 'Fail the workflow if insecure http:// links are found.'
required: false
default: 'false'
max-url-length:
description: 'Flag URLs longer than this many characters.'
required: false
default: '80'
output:
description: 'File path to write the JSON report to. Leave empty to skip writing a file.'
required: false
default: ''
comment-on-pr:
description: 'Post (or update) a formatted report as a pull request comment.'
required: false
default: 'true'
github-token:
description: 'Token used to comment on pull requests. Defaults to GITHUB_TOKEN.'
required: false
default: ${{ github.token }}
outputs:
broken-links:
description: 'Number of broken links found.'
redirect-links:
description: 'Number of links that redirect.'
insecure-links:
description: 'Number of insecure http:// links found.'
total-links:
description: 'Total number of unique links checked.'
report-path:
description: 'Path to the written JSON report, if `output` was set.'
runs:
using: 'node24'
main: 'dist/action-entry.js'