Skip to content

Add GitHub Actions workflows and fix redirected links #6

Add GitHub Actions workflows and fix redirected links

Add GitHub Actions workflows and fix redirected links #6

name: Markdown Link Check (Backup)
on:
pull_request:
branches:
- main
- km-updates
paths:
- '**.md'
workflow_dispatch:
schedule:
# Run weekly on Mondays at 9:00 AM UTC
- cron: '0 9 * * 1'
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check links in Markdown files
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'no'
use-verbose-mode: 'yes'
config-file: '.github/markdown-link-check-config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: 'main'
- name: Create summary report
if: always()
run: |
echo "## Link Check Results" >> $GITHUB_STEP_SUMMARY
echo "Check the logs above for detailed information about link validation." >> $GITHUB_STEP_SUMMARY