Skip to content

Commit

Permalink
Add external link checking exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-seqera committed Aug 5, 2024
1 parent e9bd962 commit 04c27f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ name: Links
on:
repository_dispatch:
workflow_dispatch:
# Run on PRs against `master` branch
pull_request:
branches: [ master ]
# Run on Sunday only
schedule:
- cron: "00 18 * * *"
- cron: "00 18 * * 6"

jobs:
linkChecker:
Expand All @@ -17,8 +21,9 @@ jobs:
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
# --verbose --no-progress
with:
args: --base . --verbose --no-progress -s https -s http './**/*.mdx'
args: --base . -v -n -s https -s http './**/*.mdx'

- name: Create Issue From File
if: env.lychee_exit_code != 0
Expand Down
10 changes: 10 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://lychee.cli.rs/usage/config/
scheme = ["https", "http"]
exclude = [
'^https://portal.azure.com/.+$',
'^https://gitlab.com/profile/personal_access_tokens'
]
exclude_path = [
"^.+/README.mdx",
"^.+/_todo.mdx"
]

0 comments on commit 04c27f4

Please sign in to comment.