Skip to content

Commit

Permalink
Update linkchecker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dend authored Oct 27, 2024
1 parent 78f74d4 commit 765044d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Load Excludes
run: |
LYCHEE_EXCLUDE=$(sed -e :a -e 'N;s/\n/ /;ta' .lycheeexclude)
echo "LYCHEE_EXCLUDE=$LYCHEE_EXCLUDE" >> $GITHUB_ENV
- name: Link Checker
uses: lycheeverse/lychee-action@v1
with:
args: --accept=200,429,403 --exclude ${{ env.LYCHEE_EXCLUDE }} "**/*.md"
id: lychee
uses: lycheeverse/lychee-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --verbose --accept=200,429,403 --exclude-file .lycheeexclude --no-progress "**/*.md" --exclude-mail
continue-on-error: true

- name: Create Issue From File
if: env.exit_code != 0
uses: peter-evans/create-issue-from-file@v4
if: always() && env.exit_code != '0' && github.event_name != 'pull_request'
uses: peter-evans/create-issue-from-file@main
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
Expand Down

0 comments on commit 765044d

Please sign in to comment.