From e584c0ef085ba356cc6b99d89f8c80a0265b8b0d Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Tue, 31 Mar 2026 15:27:07 +0200 Subject: [PATCH 1/2] Add GitHub action to run markdownlint on PRs Co-Authored-By: Claude Opus 4.6 --- .github/workflows/markdownlint.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/markdownlint.yml diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml new file mode 100644 index 0000000..4337ff0 --- /dev/null +++ b/.github/workflows/markdownlint.yml @@ -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<> "$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 From 53cfb82e240838a5a0d077043fa303c0e941ba8a Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Tue, 31 Mar 2026 15:31:07 +0200 Subject: [PATCH 2/2] Test. Remove before merge. --- libblockdev/libblockdev.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libblockdev/libblockdev.md b/libblockdev/libblockdev.md index 61460bf..ba7a14d 100644 --- a/libblockdev/libblockdev.md +++ b/libblockdev/libblockdev.md @@ -38,3 +38,6 @@ Following storage technologies are supported by libblockdev - NVDIMM namespaces (deprecated) - NVMe - SMART + + +*a**