From c125a90871d06f318927bf4627fad044bfed4981 Mon Sep 17 00:00:00 2001 From: Micha Hobert Date: Thu, 30 Nov 2023 16:33:44 +0100 Subject: [PATCH] Add maxdepth of 1 to ignore imported adr assets --- .github/workflows/file-format-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/file-format-check.yml b/.github/workflows/file-format-check.yml index 1dfd0bbe47..050337747d 100644 --- a/.github/workflows/file-format-check.yml +++ b/.github/workflows/file-format-check.yml @@ -8,6 +8,6 @@ jobs: - uses: actions/checkout@v4 - shell: bash run: | - find assets | grep "\.[A-Z]" && echo "ERROR: Ensure file extensions are in lowercase" && exit 1 || echo "" - find assets -type f -printf '%f\n' | grep "[_+& ]" && echo "ERROR: No special characters, except hyphen, are allowed in file names" && exit 1 || echo "" - find assets -type f -printf '%f\n' | grep -v "[-]" && echo "ERROR: No hyphen found in file names. Include hyphens to separate words e.g. storefront-checkbox.png" && exit 1 || echo "" + find assets -maxdepth 1 | grep "\.[A-Z]" && echo "ERROR: Ensure file extensions are in lowercase" && exit 1 || echo "" + find assets -maxdepth 1 -type f -printf '%f\n' | grep "[_+& ]" && echo "ERROR: No special characters, except hyphen, are allowed in file names" && exit 1 || echo "" + find assets -maxdepth 1 -type f -printf '%f\n' | grep -v "[-]" && echo "ERROR: No hyphen found in file names. Include hyphens to separate words e.g. storefront-checkbox.png" && exit 1 || echo ""