Skip to content

Commit

Permalink
Docs links checker workflow adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
nlemoine committed May 17, 2023
1 parent 4d73312 commit 6859567
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docs links checker

on: [workflow_dispatch]

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 2.x

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.8.0
with:
args: --verbose './docs/**/*.md' --max-concurrency 1 --max-retries 0 --accept 200,429 --cache
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: docs

0 comments on commit 6859567

Please sign in to comment.