Skip to content

Commit a75ed29

Browse files
authored
Add a condition to skip linkcheck
In some cases, like in this [PR](#3125), we might be adding links in the PR that don't yet exist and that will be added with that current PR. We should have an ability to skip linkcheck for cases like this. This PR adds a condition to skip link check if a label skip-link-check is added.
1 parent e05e623 commit a75ed29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/link_checkPR.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [main]
88
jobs:
99
linkChecker:
10+
if: "!contains(github.event.pull_request.labels.*.name, 'skip-link-check')"
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)