Skip to content
Closed
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
37 changes: 37 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Markdown lint

on:
pull_request:
branches: [master]

jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get changed markdown files
id: changed
run: |
files=$(git diff --name-only --diff-filter=d origin/${{ github.base_ref }}...HEAD -- '*.md')
if [ -z "$files" ]; then
echo "files=" >> "$GITHUB_OUTPUT"
echo "No changed markdown files found."
else
echo "files<<EOF" >> "$GITHUB_OUTPUT"
echo "$files" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
echo "Changed markdown files:"
echo "$files"
fi

- name: Install markdownlint
if: steps.changed.outputs.files != ''
run: sudo apt-get install -y markdownlint

- name: Run markdownlint
if: steps.changed.outputs.files != ''
run: echo "${{ steps.changed.outputs.files }}" | xargs mdl
3 changes: 3 additions & 0 deletions libblockdev/libblockdev.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ Following storage technologies are supported by libblockdev
- NVDIMM namespaces (deprecated)
- NVMe
- SMART


*a**
Loading