From d4a109c1e45b4d7bacbf6e7fa6184949f0b113e8 Mon Sep 17 00:00:00 2001 From: Jacob Kraniak <113630934+jacob-kraniak@users.noreply.github.com> Date: Fri, 15 May 2026 12:59:17 -0400 Subject: [PATCH] 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. --- .github/workflows/link-check.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index a39076a..09d7d08 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -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