forked from emilk/egui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: check that all png images are on git LFS (emilk#5321)
To prevent egui repository from growing forever * Sibling PR: emilk#5320
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: All; .png on git LFS | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-binary-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check that png files are on git LFS | ||
run: | | ||
binary_extensions="png" | ||
# 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 | ||
echo "Error: Found binary file with extension .$ext not tracked by git LFS. See CONTRIBUTING.md" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters