Skip to content

Commit

Permalink
Update link check action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmintuitive committed Sep 11, 2024
1 parent a4d3a0c commit 52051cb
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,30 @@ jobs:
- name: Run Lychee Link Checker
uses: lycheeverse/lychee-action@v1
with:
args: |
--remap '(^[^.#]+)(\.?)(#.*)?$ $1.mdx$3' \
--exclude '.*/zh/.*' \
--exclude '^(file:|[./]).*\.html$' \
--exclude '^(file:|[./]).*\.png$' \
--exclude '^(file:|[./]).*\.jpg$' \
--exclude '^(file:|[./]).*\.jpeg$' \
--exclude '^(file:|[./]).*\.svg$' \
--exclude '^(file:|[./]).*\.mp4$' \
--exclude '^(file:|[./]).*\.gif$' \
--exclude 'aptos-api-spec' \
--exclude '^(https?:\/\/localhost|https?:\/\/127\.0\.0\.1).*' \
--exclude '.*your-app.*' \
--exclude '^https://packages\.ubuntu\.com/.*' \
--exclude '^https://app\.spaceandtime\.ai/.*' \
--exclude '.*%7BmenuImage%7D.*' \
--exclude '.*imageUrl.*' \
--accept '403,401,429' \
--retry-wait-time 1 \
--max-retries 2 \
--output ./lychee/out.md \
--base . --verbose --no-progress './apps/nextra/**/*.mdx' './apps/nextra/**/*.html'
args: >
--remap '(^[^.#]+)(\.?)(#.*)?$ $1.mdx$3'
--exclude '.*/zh/.*'
--exclude '^(file:|[./]).*\.html$'
--exclude '^(file:|[./]).*\.png$'
--exclude '^(file:|[./]).*\.jpg$'
--exclude '^(file:|[./]).*\.jpeg$'
--exclude '^(file:|[./]).*\.svg$'
--exclude '^(file:|[./]).*\.mp4$'
--exclude '^(file:|[./]).*\.gif$'
--exclude 'aptos-api-spec'
--exclude '^(https?:\/\/localhost|https?:\/\/127\.0\.0\.1).*'
--exclude '.*your-app.*'
--exclude '^https://packages\.ubuntu\.com/.*'
--exclude '^https://app\.spaceandtime\.ai/.*'
--exclude '.*%7BmenuImage%7D.*'
--exclude '.*imageUrl.*'
--accept '403,401,429'
--retry-wait-time 1
--max-retries 2
--output ./lychee/out.md
--base .
--verbose
--no-progress './apps/nextra/**/*.mdx' './apps/nextra/**/*.html'
format: markdown
fail: true
output: lychee/out.md

0 comments on commit 52051cb

Please sign in to comment.