2023-10-05 12:26:21 +00:00
|
|
|
name: Links
|
|
|
|
|
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "00 18 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linkChecker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2023-10-05 12:38:33 +00:00
|
|
|
- name: Restore lychee cache
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: .lycheecache
|
|
|
|
key: cache-lychee-${{ github.sha }}
|
|
|
|
restore-keys: cache-lychee-
|
|
|
|
|
2023-10-05 12:26:21 +00:00
|
|
|
- name: Link checker
|
|
|
|
id: lychee
|
|
|
|
uses: lycheeverse/lychee-action@v1.8.0
|
2023-10-05 12:29:57 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
2023-10-05 12:38:33 +00:00
|
|
|
with:
|
2023-10-05 12:43:10 +00:00
|
|
|
args: "--cache --max-cache-age 1d -a 429 ."
|
2023-10-05 12:26:21 +00:00
|
|
|
|
|
|
|
- name: Create issue from file
|
|
|
|
if: env.lychee_exit_code != 0
|
|
|
|
uses: peter-evans/create-issue-from-file@v4
|
|
|
|
with:
|
2023-10-05 12:29:57 +00:00
|
|
|
title: "Link check report"
|
2023-10-05 12:26:21 +00:00
|
|
|
content-filepath: ./lychee/out.md
|
|
|
|
labels: report, automated issue
|