Skip to content

Commit

Permalink
Better copyright workflow: exclude some extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Nov 24, 2024
1 parent ad38fb5 commit b757191
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ jobs:
if [ ! -f "$file" ]; then
continue
fi
# Skip CSV, SVG files and known binary extensions
# Only check files with specific extensions
extension="${file##*.}"
if [[ "${extension,,}" =~ ^(csv|svg|png|jpg|jpeg|gif|ico)$ ]]; then
echo "ℹ️ Skipping $file (excluded file type)"
if ! [[ "${extension,,}" =~ ^(css|js|php|phtml|template|xml)$ ]]; then
continue
fi
Expand Down

0 comments on commit b757191

Please sign in to comment.