From d22d77c3b2297a7594a348e28fbefdb558d90a30 Mon Sep 17 00:00:00 2001 From: mmitoraj Date: Mon, 18 Mar 2024 22:11:07 +0100 Subject: [PATCH 1/2] Switch to md-check-link --- .../workflows/lint-markdown-links-daily.yml | 18 ------------------ .github/workflows/lint-markdown-links-pr.yml | 17 ----------------- 2 files changed, 35 deletions(-) delete mode 100644 .github/workflows/lint-markdown-links-daily.yml delete mode 100644 .github/workflows/lint-markdown-links-pr.yml diff --git a/.github/workflows/lint-markdown-links-daily.yml b/.github/workflows/lint-markdown-links-daily.yml deleted file mode 100644 index 6d7a98b74..000000000 --- a/.github/workflows/lint-markdown-links-daily.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Lint Markdown Links Daily -run-name: ${{github.event.pull_request.title}} -on: - schedule: - # Run everyday at 5:00 AM - - cron: "0 5 * * *" -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - use-quiet-mode: 'yes' - use-verbose-mode: 'yes' - config-file: '.mlc.config.json' - folder-path: '.' - max-depth: -1 diff --git a/.github/workflows/lint-markdown-links-pr.yml b/.github/workflows/lint-markdown-links-pr.yml deleted file mode 100644 index 7c12c598b..000000000 --- a/.github/workflows/lint-markdown-links-pr.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Lint Markdown Links PR -run-name: ${{github.event.pull_request.title}} -on: [ pull_request ] -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - use-quiet-mode: 'yes' - use-verbose-mode: 'yes' - config-file: '.mlc.config.json' - folder-path: '.' - max-depth: -1 - check-modified-files-only: 'yes' - base-branch: 'main' From b3409da629d8139c9cf4d39481c66377c3fdbb03 Mon Sep 17 00:00:00 2001 From: mmitoraj Date: Mon, 18 Mar 2024 22:15:26 +0100 Subject: [PATCH 2/2] Add workflow --- .github/workflows/pr-docu-checks.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-docu-checks.yml diff --git a/.github/workflows/pr-docu-checks.yml b/.github/workflows/pr-docu-checks.yml new file mode 100644 index 000000000..6fb30c0a6 --- /dev/null +++ b/.github/workflows/pr-docu-checks.yml @@ -0,0 +1,24 @@ +name: Verify markdown links + +on: + pull_request: + branches: + - "main" + - "release-*" + workflow_dispatch: + +jobs: + verify-links: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Install node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - name: Install md-check-link + run: npm install -g md-check-link + - name: Verify links + run: | + md-check-link -q -n 8 -c https://raw.githubusercontent.com/kyma-project/md-check-link/main/.mlc.config.json ./