aboutsummaryrefslogtreecommitdiff
path: root/tasks/markdownlint
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/markdownlint')
-rw-r--r--tasks/markdownlint/task.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/tasks/markdownlint/task.yml b/tasks/markdownlint/task.yml
new file mode 100644
index 0000000..62c5921
--- /dev/null
+++ b/tasks/markdownlint/task.yml
@@ -0,0 +1,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'