From e5ce8376656106e49ce853efb74e53a07a7bdb11 Mon Sep 17 00:00:00 2001 From: Stefan de Konink Date: Fri, 17 Mar 2023 00:34:04 +0100 Subject: [PATCH] Fix the ci action taking branches from .git (#340) --- .github/scripts/validate-and-lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/validate-and-lint.sh b/.github/scripts/validate-and-lint.sh index f3dfc1c91..cfb5d5fd4 100755 --- a/.github/scripts/validate-and-lint.sh +++ b/.github/scripts/validate-and-lint.sh @@ -22,7 +22,7 @@ while IFS= read -r -d $'\0' filename; do fi # Remove temp file rm "${filename}.pretty" -done < <(/usr/bin/find . -type f \( -name "*.xsd" -or -name "*.xml" \) -print0) +done < <(/usr/bin/find . -type f \( -name "*.xsd" -or -name "*.xml" \) -not -path "./git" -print0) if [ ${PARSING_ERROR} -ne 0 ]; then exit ${PARSING_ERROR}