[release/v7.4] Add markdown link verification for PRs (#26340)

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
This commit is contained in:
PowerShell Team Bot
2025-10-31 00:36:54 +00:00
committed by GitHub
co-authored by Travis Plunk Copilot xtqqczze
parent 05cb6d03ad
commit fc5d5faafc
6 changed files with 916 additions and 0 deletions
@@ -0,0 +1,32 @@
name: Verify Markdown Links
on:
push:
branches: [ main, master ]
paths:
- '**/*.md'
- '.github/workflows/verify-markdown-links.yml'
- '.github/actions/infrastructure/markdownlinks/**'
pull_request:
branches: [ main, master ]
paths:
- '**/*.md'
schedule:
# Run weekly on Sundays at midnight UTC to catch external link rot
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
verify-markdown-links:
name: Verify Markdown Links
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Verify markdown links
id: verify
uses: ./.github/actions/infrastructure/markdownlinks
with:
timeout-sec: 30
maximum-retry-count: 2