2022-07-31 11:28:56 -07:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 16:10:21 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-31 11:28:56 -07:00
|
|
|
with:
|
2022-10-05 06:15:27 +00:00
|
|
|
fetch-depth: 0
|
2024-08-23 02:47:02 +00:00
|
|
|
- uses: tj-actions/changed-files@v45
|
2022-07-31 11:28:56 -07:00
|
|
|
id: changed-files
|
|
|
|
with:
|
|
|
|
files: '**/*.md'
|
2022-11-30 03:29:42 +00:00
|
|
|
separator: ","
|
2024-12-28 17:23:01 -08:00
|
|
|
- uses: DavidAnson/markdownlint-cli2-action@v19
|
2022-07-31 11:28:56 -07:00
|
|
|
if: steps.changed-files.outputs.any_changed == 'true'
|
|
|
|
with:
|
|
|
|
globs: ${{ steps.changed-files.outputs.all_changed_files }}
|
2022-11-30 03:29:42 +00:00
|
|
|
separator: ","
|