Refactor link-check workflow for JK_Revisions branch

Updated the link check workflow to trigger on the 'JK_Revisions' branch and added a schedule for weekly checks. Modified job steps for better clarity and added a max depth parameter.
This commit is contained in:
Jacob Kraniak 2026-05-15 12:59:17 -04:00 committed by GitHub
parent f86f51998a
commit d4a109c1e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 9 deletions

View File

@ -1,20 +1,29 @@
name: Markdown Link Check
name: Check Markdown Links
on:
push:
branches: [ "*" ]
branches: [ "JK_Revisions" ]
pull_request:
branches: [ master ]
branches: [ "JK_Revisions" ]
schedule:
- cron: "0 12 * * 1" # Weekly on Mondays at 12:00 UTC
workflow_dispatch: # Manual trigger
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Markdown Link Checker
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: "yes"
check-modified-files-only: "no" # full scan first time
folder-path: '.' # whole repo
file-extension: '.md'
config-file: '.markdown-link-check.json' # optional later
check-modified-files-only: "false"
folder-path: "."
file-extension: ".md"
config-file: ".markdown-link-check.json" # Create this for ignores
max-depth: 2 # Adjust as needed