@@ -9,7 +9,7 @@ The action aims at detecting and reporting broken links.
9
9
10
10
## How to use it?
11
11
12
- A set of examples are included in the [ examples] ( examples ) folder. A few detailed
12
+ A set of examples are included in the [ examples] ( examples ) folder. A few detailed
13
13
examples are also included below. Note that examples always reference the master branch,
14
14
however you should change them to reference a [ release] ( https://github.com/urlstechie/urlchecker-action/releases ) .
15
15
38
38
# A comma-separated list of file types to cover in the URL checks
39
39
file_types: .md,.py,.rst
40
40
41
- # Choose whether to include file with no URLs in the prints.
41
+ # Whether to include files without URLs in the action output
42
42
print_all: false
43
43
44
44
# The timeout seconds to provide to requests, defaults to 5 seconds
@@ -47,13 +47,13 @@ jobs:
47
47
# How many times to retry a failed request (each is logged, defaults to 1)
48
48
retry_count: 3
49
49
50
- # A comma separated links to exclude during URL checks
50
+ # A comma- separated list of URLs to exclude from checks
51
51
exclude_urls: https://github.com/SuperKogito/URLs-checker/issues/1,https://github.com/SuperKogito/URLs-checker/issues/2
52
52
53
- # A comma separated patterns to exclude during URL checks
54
- exclude_patterns: https://github.com/SuperKogito/Voice-based-gender-recognition/issues
53
+ # A comma- separated list of substrings to exclude matching URLs from checks
54
+ exclude_patterns: localhost:3030, https://github.com/SuperKogito/Voice-based-gender-recognition/issues
55
55
56
- # choose if the force pass or not
56
+ # Whether to force success, even if broken links are found
57
57
force_pass : true
58
58
```
59
59
@@ -90,52 +90,52 @@ jobs:
90
90
# A subfolder or path to navigate to in the present or cloned repository
91
91
subfolder: docs
92
92
93
- # Delete the cloned repository after running URLchecked (default is false)
93
+ # Whether to delete the cloned repo after the check (default is ` false` )
94
94
cleanup: true
95
95
96
96
# A comma-separated list of file types to cover in the URL checks
97
97
file_types: .md,.py,.rst
98
98
99
- # Choose whether to include file with no URLs in the prints.
99
+ # Whether to include files without URLs in the action output
100
100
print_all: false
101
101
102
- # The timeout seconds to provide to requests, defaults to 5 seconds
102
+ # The timeout seconds to provide to requests (in seconds , defaults to `5`)
103
103
timeout: 5
104
104
105
- # How many times to retry a failed request (each is logged, defaults to 1 )
105
+ # How many times to retry a failed request (each is logged, defaults to `1` )
106
106
retry_count: 3
107
107
108
- # A comma separated links to exclude during URL checks
108
+ # A comma- separated list of URLs to exclude from checks
109
109
exclude_urls: https://github.com/SuperKogito/URLs-checker/issues/1,https://github.com/SuperKogito/URLs-checker/issues/2
110
110
111
- # A comma separated patterns to exclude during URL checks
111
+ # A comma- separated list of substrings to exclude matching URLs from checks
112
112
exclude_patterns: https://github.com/SuperKogito/Voice-based-gender-recognition/issues
113
113
114
- # A comma separated list of file patterns (direct paths work as well) to exclude
114
+ # A comma- separated list of file paths to exclude from checks (supports regex)
115
115
exclude_files: README.md,/github/workspace/_config.yml
116
116
117
- # choose if the force pass or not
117
+ # Whether to force success, even if broken links are found
118
118
force_pass : true
119
119
```
120
120
## Inputs
121
121
122
122
123
- | variable name | variable type | variable description |
124
- | -----------------------------| ----------------------------------------------| ------------------------------------------------------------------|
125
- | ` git_path ` | <span style =" color :green " > optional </span > | A git url to clone, if the repository isn't already in $PWD |
126
- | ` branch ` | <span style =" color :green " > optional </span > | If we do a clone, clone this branch ( defaults to master |
127
- | ` cleanup ` | <span style =" color :green " > optional </span > | If we do a clone, delete the cloned folder after ( false) |
128
- | ` subfolder ` | <span style =" color :green " > optional </span > | A subfolder to navigate to in the repository to check |
129
- | ` file_types ` | <span style =" color :green " > optional </span > | A comma -separated list of file types to cover in the URLs checks. |
130
- | ` include_files ` | <span style =" color :green " > optional </span > | A comma -separated list of exact files to check. |
131
- | ` print_all ` | <span style =" color :green " > optional </span > | Choose whether to include file with no URLs in the prints. |
132
- | ` retry_count ` | <span style =" color :green " > optional </span > | If a request fails, retry this number of times. Defaults to 1 |
133
- | ` save ` | <span style =" color :green " > optional </span > | A path to a csv file to save results to |
134
- | ` timeout ` | <span style =" color :green " > optional </span > | The timeout to provide to requests to wait for a response. |
135
- | ` exclude_urls ` | <span style =" color :green " > optional </span > | A comma separated list of links. |
136
- | ` exclude_patterns ` | <span style =" color :green " > optional </span > | A comma separated list of patterns. |
137
- | ` exclude_files ` | <span style =" color :green " > optional </span > | Full paths to files to exclude (comma separated list). |
138
- | ` force_pass ` | <span style =" color :green " > optional </span > | Choose whether to force a pass when checks are done. |
123
+ | variable name | variable type | variable description |
124
+ | -----------------------------| ----------------------------------------------| --------------------------------------------------------------------------------------- |
125
+ | ` git_path ` | <span style =" color :green " > optional </span > | Git URL to clone ( if the repository isn't already in ` $PWD ` ) |
126
+ | ` branch ` | <span style =" color :green " > optional </span > | Branch to clone (if ` git_path ` is used, defaults to ` master ` ) |
127
+ | ` cleanup ` | <span style =" color :green " > optional </span > | Whether to delete the cloned repo after the check (defaults to ` false ` ) |
128
+ | ` subfolder ` | <span style =" color :green " > optional </span > | Subfolder to navigate to in the repository to check |
129
+ | ` file_types ` | <span style =" color :green " > optional </span > | Comma -separated list of file types to check |
130
+ | ` include_files ` | <span style =" color :green " > optional </span > | Comma -separated list of files to check (supports regex) |
131
+ | ` print_all ` | <span style =" color :green " > optional </span > | Whether to include files without URLs in the action output (defaults to ` true ` ) |
132
+ | ` retry_count ` | <span style =" color :green " > optional </span > | Number of times to retry a request upon failure (defaults to ` 3 ` ) |
133
+ | ` save ` | <span style =" color :green " > optional </span > | File path where ` . csv` results are written |
134
+ | ` timeout ` | <span style =" color :green " > optional </span > | Request timeout (in seconds, defaults to ` 1 ` ) |
135
+ | ` exclude_urls ` | <span style =" color :green " > optional </span > | Comma- separated list of URLs to exclude |
136
+ | ` exclude_patterns ` | <span style =" color :green " > optional </span > | Comma- separated list of substrings that exclude matching URLs |
137
+ | ` exclude_files ` | <span style =" color :green " > optional </span > | Comma-separated list of file paths to exclude (supports regex) |
138
+ | ` force_pass ` | <span style =" color :green " > optional </span > | Whether to force action success, even if broken links are found (defaults to ` false ` ) |
139
139
140
140
## Demo
141
141
- Using version > 0.1.4
0 commit comments