Skip to content

Commit

Permalink
Add maxdepth of 1 to ignore imported adr assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Nov 30, 2023
1 parent b602d41 commit c125a90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/file-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

0 comments on commit c125a90

Please sign in to comment.