mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2025-09-02 01:22:34 +02:00
Setup markdownlint Github Action
This commit is contained in:
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@@ -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"
|
||||
|
Reference in New Issue
Block a user