forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 753 Bytes
/
Copy pathlink-check.yml
File metadata and controls
29 lines (25 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Link Checker
on:
workflow_dispatch:
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --verbose --no-progress --max-redirects 8 './**/*.md' './**/*.rst'
format: markdown
fail: false
output: lychee/results.md
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v6
with:
title: Link Checker Report
content-filepath: ./lychee/results.md
labels: report, automated issue