Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Markdown Lint
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Get file changes
id: get_file_changes
uses: trilom/[email protected]
with:
output: ' '
- name: Echo changed files
run: |
echo Changed files: ${{ steps.get_file_changes.outputs.files }}
- name: Get only md files
id: get_md_changes
run: |
echo -e "::set-output name=files::\c";echo "${{ steps.get_file_changes.outputs.files }}" | for i in $(cat) ; do if [[ $i == *.md ]]; then echo -e "$i \c"; fi ;done
- name: markdownlint-cli
if: ${{ steps.get_md_changes.outputs.files}}
uses: nosborn/[email protected]
with:
files: ${{ steps.get_md_changes.outputs.files}}
config_file: ".markdownlint"
5 changes: 5 additions & 0 deletions .markdownlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"default": false,
"MD041": true,
"MD013": { "line_length": 120 }
}