2022-07-31 20:28:56 +02:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 18:10:21 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-31 20:28:56 +02:00
|
|
|
with:
|
2022-10-05 08:15:27 +02:00
|
|
|
fetch-depth: 0
|
2023-10-26 11:12:37 +02:00
|
|
|
- uses: tj-actions/changed-files@v40
|
2022-07-31 20:28:56 +02:00
|
|
|
id: changed-files
|
|
|
|
with:
|
|
|
|
files: '**/*.md'
|
2022-11-30 04:29:42 +01:00
|
|
|
separator: ","
|
2023-09-20 05:45:33 +02:00
|
|
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
2022-07-31 20:28:56 +02:00
|
|
|
if: steps.changed-files.outputs.any_changed == 'true'
|
|
|
|
with:
|
|
|
|
globs: ${{ steps.changed-files.outputs.all_changed_files }}
|
2022-11-30 04:29:42 +01:00
|
|
|
separator: ","
|