Skip to content

Commit

Permalink
Replace markdown link check action with script (#2785)
Browse files Browse the repository at this point in the history
* Replace markdown link check action with script

* Add change to changelog

* Fix spelling error in CHANGELOG
  • Loading branch information
MrAlias committed Apr 13, 2022
1 parent db7fd1b commit 57a248d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/markdown.yml
Expand Up @@ -35,16 +35,23 @@ jobs:

check-links:
runs-on: ubuntu-latest
needs: changedfiles
if: ${{needs.changedfiles.outputs.md}}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
base-branch: 'main'
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.markdown-link.json'
check-modified-files-only: 'yes'
folder-path: ''
# This doesn't use gaurav-nelson/github-action-markdown-link-check
# intentionally. As of v1.0.13 the base image was not pinned to a LTS
# version of node and updates upstream to the base image caused CI
# failures. This boils down the entrypoint script from that repository
# and calls markdown-link-check directly instead.
- 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.json \
${{needs.changedfiles.outputs.md}}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Fixed

- Resolve supply-chain failure for the markdown-link-checker GitHub action by calling the CLI directly. (#2834)

## [0.29.0] - 2022-04-11

### Added
Expand Down

0 comments on commit 57a248d

Please sign in to comment.