-
Notifications
You must be signed in to change notification settings - Fork 92
38 lines (33 loc) · 1008 Bytes
/
links-watcher.yml
File metadata and controls
38 lines (33 loc) · 1008 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
30
31
32
33
34
35
36
37
38
name: Links Watcher
on:
push:
branches: [main]
pull_request:
types: [opened, edited, synchronize, reopened]
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
links-watcher:
runs-on: ubuntu-latest
steps:
- name: "Checkout source code"
uses: actions/checkout@v3
- name: Check Links in README
id: lychee
uses: lycheeverse/lychee-action@v1.5.4
with:
args: --verbose --no-progress --max-concurrency 2 --exclude-mail --exclude-loopback './**/*.md'
output: ./lychee/out.md
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
#- name: Create issue when fail
# uses: peter-evans/create-issue-from-file@v5
# if: ${{ steps.lychee.outputs.exit_code }} != 0
# with:
# title: Link Checker Report
# content-filepath: ./lychee/out.md
# labels: broken link, automated issue
# env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}