Skip to content

Commit 378a1ba

Browse files
committed
Setup markdownlint Github Action
1 parent c909ede commit 378a1ba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
- name: Write git diff to temp file
18+
run: |
19+
git fetch origin
20+
git diff origin/${{ github.base_ref }} --unified=0 *.md translations/*/*.md \
21+
> ${{ runner.temp }}/diff.md
1722
- uses: DavidAnson/markdownlint-cli2-action@v17
23+
with:
24+
globs: "${{ runner.temp }}/diff.md"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ If you're an experienced Python programmer, you can take it as a challenge to ge
2323
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).
2424

2525
So, here we go...
26+
[invalid link]()
2627

2728
# Table of Contents
2829

0 commit comments

Comments
 (0)