File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- 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
17
22
- uses : DavidAnson/markdownlint-cli2-action@v17
23
+ with :
24
+ globs : " ${{ runner.temp }}/diff.md"
Original file line number Diff line number Diff line change 1
- # MD013/line-length
2
1
MD013 :
3
2
line_length : 120
4
3
@@ -13,3 +12,6 @@ MD033: false
13
12
14
13
# no-inline-html : Bare URL used (site should be attributed transparently, because otherwise we have to un-necesarily explain where the link directs)
15
14
MD034 : false
15
+
16
+ # first-line-h1 : First line in a file should be a top-level heading (Ignore because diff file will never have valid heading)
17
+ MD041 : false
You can’t perform that action at this time.
0 commit comments