This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Merge pull request #70 from ietf/ghwood-patch-1 #176
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: "Lint Markdown" | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint-changelog: | |
name: Lint Markdown | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Locate or create markdownlint config | |
run: | | |
if [ ! -f .markdownlint.json ]; then | |
echo "Using template markdownlint config" | |
cat << EOF > .markdownlint.json | |
{ | |
"default": true, | |
"MD013": false, | |
"MD026": false, | |
"MD029": {"style": "ordered" }, | |
"MD033": false, | |
"MD034": false, | |
"MD040": false, | |
"MD041": false | |
} | |
EOF | |
fi | |
- name: Run markdownlint | |
uses: docker://avtodev/markdown-lint:master | |
with: | |
config: '.markdownlint.json' | |
args: '**.md' |