-
Notifications
You must be signed in to change notification settings - Fork 304
35 lines (30 loc) · 1014 Bytes
/
links-validator.yml
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
name: Links validator
on:
repository_dispatch:
workflow_dispatch:
schedule:
# At 09:00 on Monday: https://crontab.guru/#0_9_*_*_1
- cron: "0 9 30 * 0"
jobs:
link_checker:
name: Link Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check links
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --verbose --no-progress --timeout 10 --max-concurrency 2 --exclude 'twitter.com' -- './**/*.md'
output: ./lychee/out.md
- name: Get current date
id: date
run: echo "::set-output name=now::$(date +'%d-%m-%Y')"
- name: Create issue when fail
if: ${{ steps.lychee.outputs.exit_code }} != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Automated Links Checker Report for ${{ steps.date.outputs.now }}
content-filepath: ./lychee/out.md
labels: links validator