-
Notifications
You must be signed in to change notification settings - Fork 55
39 lines (34 loc) · 969 Bytes
/
links.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
36
37
38
39
name: Links
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
- cron: "00 18 * * *"
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
id: link_check
uses: lycheeverse/lychee-action@cb79c9607b37671965f8dbb54cae47795758a440 #1.1.1
with:
args: --verbose --no-progress **/*.md data/community_pages.yaml data/players.yaml data/platforms.json
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail on 404s
if: steps.link_check.outputs.exit_code != 0
run: echo ::set-output name=exit_code::1
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.4
if: steps.link_check.outputs.exit_code != 0
with:
name: link-check Output
path: lychee/out.md
if-no-files-found: ignore