0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-10-16 20:17:01 +02:00
markdownlint-cli2-action/.github/workflows/changed.yml

18 lines
466 B
YAML

on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: tj-actions/changed-files@v29.0.4
id: changed-files
with:
files: '**/*.md'
separator: "\n"
- uses: DavidAnson/markdownlint-cli2-action@v7
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: ${{ steps.changed-files.outputs.all_changed_files }}