From 51743382437d3f9298daeb2b927a4a848fe4e72d Mon Sep 17 00:00:00 2001 From: bala Date: Tue, 29 Jul 2025 06:28:42 +0000 Subject: [PATCH] Replace deprecated markdown-link-check with maintained version --- .github/workflows/check-links-periodic.yaml | 19 +++++++++++++++++++ .github/workflows/check-links-pr.yaml | 13 +++++++++++++ .github/workflows/check-links.yaml | 17 ----------------- 3 files changed, 32 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/check-links-periodic.yaml create mode 100644 .github/workflows/check-links-pr.yaml delete mode 100644 .github/workflows/check-links.yaml diff --git a/.github/workflows/check-links-periodic.yaml b/.github/workflows/check-links-periodic.yaml new file mode 100644 index 0000000..26f8c3d --- /dev/null +++ b/.github/workflows/check-links-periodic.yaml @@ -0,0 +1,19 @@ +name: Check Markdown links + +on: + workflow_dispatch: + push: + branches: + - main + schedule: + - cron: "0 0 1 * *" + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: tcort/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' diff --git a/.github/workflows/check-links-pr.yaml b/.github/workflows/check-links-pr.yaml new file mode 100644 index 0000000..e7af798 --- /dev/null +++ b/.github/workflows/check-links-pr.yaml @@ -0,0 +1,13 @@ +on: [pull_request] +name: Check Markdown links in modified files +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: tcort/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + check-modified-files-only: 'yes' + base-branch: 'main' diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml deleted file mode 100644 index 338fd33..0000000 --- a/.github/workflows/check-links.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Check Markdown links - -on: - workflow_dispatch: - push: - pull_request: - schedule: - - cron: "0 0 1 * *" - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - config-file: .github/mlc_config.json