aboutsummaryrefslogtreecommitdiff
path: root/tasks/markdownlint/task.yml
blob: 62c5921ee1b2d4344984ed84dd1189740b7872b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
platform: linux
image_resource:
  type: registry-image
  source:
    repository: ghcr.io/igorshubovych/markdownlint-cli
    tag: latest

inputs:
  - name: repo

run:
  path: ash
  args:
    - -eufo
    - pipefail
    - -c
    - |
      echo "PARAMS=${PARAMS:-}"
      cd repo
      markdownlint ${PARAMS}

params:
  PARAMS: '**/*.md'