mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2026-11-01 21:38:18 +00:00
Add separate daily check for broken links
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
2 files changed
+28
-16
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
name: Check for broken links
|
||||||
|
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "00 18 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linkChecker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Link Checker
|
||||||
|
id: lychee
|
||||||
|
uses: lycheeverse/lychee-action@v1.5.1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
|
- name: Create Issue From File
|
||||||
|
if: steps.lychee.outputs.exit_code != 0
|
||||||
|
uses: peter-evans/create-issue-from-file@v4
|
||||||
|
with:
|
||||||
|
title: Link Checker Report
|
||||||
|
content-filepath: ./lychee/out.md
|
||||||
|
labels: report, automated issue
|
||||||
|
|
||||||
@@ -26,19 +26,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Test mkdocs builds
|
- name: Test mkdocs builds
|
||||||
run: python3 -m mkdocs build
|
run: python3 -m mkdocs build
|
||||||
|
|
||||||
- name: Link Checker
|
|
||||||
id: lychee
|
|
||||||
uses: lycheeverse/lychee-action@v1
|
|
||||||
with:
|
|
||||||
args: --verbose --no-progress site/**/*.html
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
|
|
||||||
- name: Create Issue From File
|
|
||||||
if: steps.lychee.outputs.exit_code != 0
|
|
||||||
uses: peter-evans/create-issue-from-file@v4
|
|
||||||
with:
|
|
||||||
title: Link Checker Report
|
|
||||||
content-filepath: ./lychee/out.md
|
|
||||||
labels: report, automated issue
|
|
||||||
Reference in new issue
Block a user