From a71ca1e24fe8cca8e99d5bd97c564d0d79950b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mich=C3=A8le=20BARRE?= Date: Wed, 4 May 2022 10:01:30 +1100 Subject: [PATCH] fix: exclude workflows files Refs: #18 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index ba08b02..e2adec9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh -l cd /github/workspace/ -yamlfixer $OPTIONS --nochange --recurse -1 --diffto /tmp/changes.patch . $YAML_FILE +yamlfixer $OPTIONS --nochange --diffto /tmp/changes.patch $(git ls-files '*.yaml' '*.yml' '.yamllint' | grep -v ^.github/workflows/) $YAML_FILE if [[ -s /tmp/changes.patch ]] ; then echo "WARN: all input files didn't pass successfully yamllint strict mode." ;