-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add markdown check action #4907
Changes from 13 commits
41dfa78
6887a94
55703a0
db9b741
138b2f5
b4e13e9
62b038d
c25f3ad
4376469
a491e08
ddac31f
ee194e1
b1ee184
5f8a0a3
9413c3a
9b7ac77
71d1bf1
4a66b98
947d71c
3fd9ce0
3ec857a
cba73cd
f403335
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (c) 2020-2022, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# A workflow to check if PR got broken hyperlinks | ||
name: Check Markdown links | ||
jlowe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
on: | ||
pull_request_target: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
FYI we use pull_request_target in signoff-check is only because that the check is based on BASE branch instead of relying on developer's feature branch There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks and good to know that, one question is that do we need a GITHUB_TOKEN when we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. GITHUB_TOKEN is the default token of repo and is maintained by github action itself as ENV.
For actions/checkout, no.
above was just an example, this really arg naming depends on the action provider, if they require extra tokens (or access), they should have documented somewhere in their repo There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
max-depth: -1 | ||
use-verbose-mode: 'yes' | ||
jlowe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
check-modified-files-only: 'yes' | ||
config-file: '.github/workflows/markdown-links-check/markdown-links-check-config.json' | ||
base-branch: 'gh-pages' | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"timeout": "5s", | ||
"retryCount":10, | ||
"aliveStatusCodes": [0, 200, 302, 400, 403, 429] | ||
jlowe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright (c) 2022, NVIDIA CORPORATION.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, updated