chore: tweak link check workflow and renovate config

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2022-12-23 13:47:37 -05:00
1 parent f0c2c84dd9
commit 28e280a3de
7 files changed
+206 -9

No files matched your search

@@ -1,24 +1,39 @@
---
name: "Link Checker"
name: "Link Check"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
- cron: "0 * * * *"
jobs:
link-checker:
name: Link Checker
link-check:
name: Link Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
- name: Restore lychee cache
uses: actions/cache@c1a5de879eb890d062a85ee0252d6036480b1fe2 # v3.2.1
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
uses: lycheeverse/lychee-action@4dcb8bee2a0a4531cba1a1f392c54e8375d6dd81 # renovate: tag=v1.5.4
id: lychee
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
args: >
--cache
--max-cache-age 1d
--verbose
--no-progress
--exclude-mail
'./**/*.md'
- name: Find Link Checker Issue
id: link-checker-issue
@@ -31,7 +46,7 @@ jobs:
- name: Update Issue
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # renovate: tag=v4.0.1
with:
title: Broken links detected in docs 🔗
title: Broken links detected 🔗
issue-number: "${{ steps.link-checker-issue.outputs.issue-number }}"
content-filepath: ./lychee/out.md
token: "${{ secrets.GITHUB_TOKEN }}"