Fix markdownlint execution in the CI pipeline #87
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Pull Request Checks" | |
on: pull_request | |
jobs: | |
# Enforce the update of the changelog file | |
check-changelog-change: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dangoslen/changelog-enforcer@v3 | |
# Ensure markdown files are formatted consistently | |
lint-markdown-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: xt0rted/markdownlint-problem-matcher@v2 | |
- run: npm install -g markdownlint-cli2 | |
- run: npx --silent glob '**/*.md' # list all files that will be processed | |
- run: markdownlint-cli2 '**/*.md' | |
#- run: ! egrep -q '\(\[\#[0-9]+\]\)' CHANGELOG.md |