From 9ef90ae576cf2352cb4c52734a74b1c838d98fc8 Mon Sep 17 00:00:00 2001 From: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:15:02 +0100 Subject: [PATCH] Use project version of markdown-link-check package (#1562) --- .github/workflows/changelog.yml | 13 ++++--------- Makefile | 5 +++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index a5a390b69..af8ecb310 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -76,13 +76,8 @@ jobs: # In order to validate any links in the yaml file, render the config to markdown - name: Render .chloggen changelog entries - run: make chlog-preview > changelog_preview.md - - name: Install markdown-link-check - run: npm install -g markdown-link-check - - name: Run markdown-link-check run: | - markdown-link-check \ - --verbose \ - --config .markdown_link_check_config.json \ - changelog_preview.md \ - || { echo "Check that anchor links are lowercase"; exit 1; } + make chlog-preview 2> changelog_preview.md + cat changelog_preview.md + - name: Run markdown-link-check + run: markdown-link-check-changelog-preview diff --git a/Makefile b/Makefile index 80b905b8b..b659346c6 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,11 @@ markdown-link-check: || exit 1; \ done +.PHONY: markdown-link-check-changelog-preview +markdown-link-check-changelog-preview: + @if ! npm ls markdown-link-check; then npm install; fi + npx --no -- markdown-link-check --verbose --config .markdown_link_check_config.json changelog_preview.md; + # This target runs markdown-toc on all files that contain # a comment . #