Skip to content

Commit b757191

Browse files
committed
Better copyright workflow: exclude some extensions
1 parent ad38fb5 commit b757191

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/copyright.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ jobs:
4343
if [ ! -f "$file" ]; then
4444
continue
4545
fi
46-
47-
# Skip CSV, SVG files and known binary extensions
46+
47+
# Only check files with specific extensions
4848
extension="${file##*.}"
49-
if [[ "${extension,,}" =~ ^(csv|svg|png|jpg|jpeg|gif|ico)$ ]]; then
50-
echo "ℹ️ Skipping $file (excluded file type)"
49+
if ! [[ "${extension,,}" =~ ^(css|js|php|phtml|template|xml)$ ]]; then
5150
continue
5251
fi
5352

0 commit comments

Comments
 (0)