Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to fix Lychee github action error
Browse files Browse the repository at this point in the history
mdlinville committed Jan 27, 2025
1 parent 6882db4 commit ce5243b
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
name: Lychee check
on:
pull_request:
paths:
- '**.md'

jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
issues: write # required for peter-evans/create-issue-from-file
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
fail: false

- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue

lychee:
runs-on: ubuntu-latest
steps:
@@ -21,11 +40,7 @@ jobs:
uses: lycheeverse/lychee-action@v1.10.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: >
--scheme https --scheme http --verbose --no-cache
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
--max-concurrency 5 --retry-count 3 --retry-delay 2
${{ steps.changed-files.outputs.all_changed_files }}
args: --base content --scheme https --scheme http --verbose --no-cache --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" --max-concurrency 5 --retry-count 3 --retry-delay 2 ${{ steps.changed-files.outputs.all_changed_files }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit ce5243b

Please sign in to comment.