mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Exclude icon.png from lfs (#5336)
* Closes #5331 * [x] I have followed the instructions in the PR template
This commit is contained in:
3
.github/workflows/png_only_on_lfs.yml
vendored
3
.github/workflows/png_only_on_lfs.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user