Update popup.rs #22
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
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" | |
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 | 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 | |
done |