From 378a1bae00ea4759da40d3beb8ebd9ecea762180 Mon Sep 17 00:00:00 2001 From: Vadim Nifadev <36514612+nifadyev@users.noreply.github.com> Date: Thu, 27 Feb 2025 17:52:08 +0300 Subject: [PATCH] Setup markdownlint Github Action --- .github/workflows/pr.yml | 7 +++++++ README.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4da1774..2120da7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,4 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Write git diff to temp file + run: | + git fetch origin + git diff origin/${{ github.base_ref }} --unified=0 *.md translations/*/*.md \ + > ${{ runner.temp }}/diff.md - uses: DavidAnson/markdownlint-cli2-action@v17 + with: + globs: "${{ runner.temp }}/diff.md" diff --git a/README.md b/README.md index d6b6e17..70dd480 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ If you're an experienced Python programmer, you can take it as a challenge to ge PS: If you're a returning reader, you can learn about the new modifications [here](https://github.com/satwikkansal/wtfpython/releases/) (the examples marked with asterisk are the ones added in the latest major revision). So, here we go... +[invalid link]() # Table of Contents