Skip to content

Commit 5831648

Browse files
committed
Create temp file with changed LOC for lint CI action
1 parent c909ede commit 5831648

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/pr.yml

+5
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ 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 diff --unified=0 *.md translations/*/*.md | grep -Po '(?<=^\+)(?!\+\+).*' > ${{ runner.temp }}/diff.md
1720
- uses: DavidAnson/markdownlint-cli2-action@v17
21+
with:
22+
globs: "${{ runner.temp }}/diff.md"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ While some of the examples you see below may not be WTFs in the truest sense, bu
2121
If you're an experienced Python programmer, you can take it as a challenge to get most of them right in the first attempt. You may have already experienced some of them before, and I might be able to revive sweet old memories of yours! :sweat_smile:
2222

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).
24+
[invalid link]()
2425

2526
So, here we go...
2627

0 commit comments

Comments
 (0)