Skip to content

Commit 197ae90

Browse files
authored
Upgrade and fix link checker to 1.2. (opensearch-project#1811)
Signed-off-by: dblock <dblock@amazon.com>
1 parent 8b076b8 commit 197ae90

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/links.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Load Excludes
13-
run: |
14-
LYCHEE_EXCLUDE=$(sed -e :a -e 'N;s/\n/ /;ta' .lycheeexclude)
15-
echo "LYCHEE_EXCLUDE=$LYCHEE_EXCLUDE" >> $GITHUB_ENV
16-
1712
- name: lychee Link Checker
1813
id: lychee
19-
uses: lycheeverse/lychee-action@master
14+
uses: lycheeverse/lychee-action@v1.2.0
2015
with:
21-
args: --accept=200,403,429 --exclude ${{ env.LYCHEE_EXCLUDE }} --exclude-mail "**/*.html" "**/*.md" "**/*.txt" "**/*.json"
16+
args: --accept=200,403,429 --exclude-mail **/*.html **/*.md **/*.txt **/*.json --exclude-file .lychee.excludes
17+
fail: true
2218
env:
23-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
24-
- name: Fail if there were link errors
25-
run: exit ${{ steps.lychee.outputs.exit_code }}
19+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.lycheeexclude .lychee.excludes

File renamed without changes.

0 commit comments

Comments
 (0)