chore: tweak link check workflow and renovate config
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
7 files changed
+206
-9
No files matched your search
@@ -0,0 +1,54 @@
|
||||
---
|
||||
name: "Link Check"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
|
||||
jobs:
|
||||
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
|
||||
uses: micalevisk/last-issue-action@044e1cb7e9a4dde20e22969cb67818bfca0797be # renovate: tag=2.0.0
|
||||
with:
|
||||
state: open
|
||||
labels: |
|
||||
link-checker
|
||||
|
||||
- name: Update Issue
|
||||
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # renovate: tag=v4.0.1
|
||||
with:
|
||||
title: Broken links detected 🔗
|
||||
issue-number: "${{ steps.link-checker-issue.outputs.issue-number }}"
|
||||
content-filepath: ./lychee/out.md
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
labels: |
|
||||
link-checker
|
||||
Reference in new issue
Block a user