From 786cd19a227a20b352b0764c9546c35fa5249ce8 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 30 Dec 2023 05:28:03 +0100 Subject: add tasks --- tasks/markdownlint/task.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tasks/markdownlint/task.yml (limited to 'tasks/markdownlint') 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' -- cgit v1.2.3