-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (30 loc) · 960 Bytes
/
LinkChecker.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
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "00 18 * * *"
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'gh-pages'
- name: Link Checker
uses: lycheeverse/[email protected]
with:
args: --verbose --no-progress **/*.html --exclude=".+gstatic.+" --exclude="https://doi.org.+" --exclude="https://github.com/JuliaSmoothOptimizers/PACKAGE.jl"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Success?
run: if [ ! -f lychee/out.md ]; then mkdir -p lychee; echo "All tests links are working" > lychee/out.md; fi
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v3
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
issue-number: 23
labels: report, automated issue