Skip to content

Commit

Permalink
update link checker exclude patterns (#73)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 authored Dec 18, 2023
1 parent 877de96 commit 35787c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Checkout OpenSearch-Dashboards
uses: actions/checkout@v2
with:
repository: opensearch-project/OpenSearch-Dashboards
ref: main
path: OpenSearch-Dashboards
- name: Load Excludes
run: |
LYCHEE_EXCLUDE=$(sed -e :a -e 'N;s/\n/ --exclude /;ta' OpenSearch-Dashboards/.lycheeexclude)
LYCHEE_EXCLUDE=$(grep -v '^#\|^$' .lycheeexclude | sed -e :a -e 'N;s/\n/ --exclude /;ta')
echo "LYCHEE_EXCLUDE=$LYCHEE_EXCLUDE" >> $GITHUB_ENV
- name: Lychee Link Checker
id: lychee
Expand All @@ -34,4 +28,4 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
run: exit ${{ steps.lychee.outputs.exit_code }}
5 changes: 5 additions & 0 deletions .lycheeexclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# exclude regexes
https?://.+\$$

https://bedrock-runtime.*.amazonaws.com/*
https://link

0 comments on commit 35787c6

Please sign in to comment.