From 5cc10b48dc9ed377576cea79eb0503e182405dab Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Fri, 1 Nov 2024 12:33:41 +0100 Subject: [PATCH] Allow icon in git lfs check action --- .github/workflows/png_only_on_lfs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/png_only_on_lfs.yml b/.github/workflows/png_only_on_lfs.yml index a179f5459b79..a9b072516a69 100644 --- a/.github/workflows/png_only_on_lfs.yml +++ b/.github/workflows/png_only_on_lfs.yml @@ -13,10 +13,11 @@ jobs: - name: Check that png files are on git LFS run: | binary_extensions="png" + exclude="crates/eframe/data # Find binary files that are not tracked by Git LFS for ext in $binary_extensions; do - if comm -23 <(git ls-files | sort) <(git lfs ls-files -n | sort) | grep "\.${ext}$"; then + if comm -23 <(git ls-files | grep -v "^$exclude" | sort) <(git lfs ls-files -n | sort) | grep "\.${ext}$"; then echo "Error: Found binary file with extension .$ext not tracked by git LFS. See CONTRIBUTING.md" exit 1 fi