Skip to content

Commit

Permalink
Update check-spdx-license-id.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea authored Jul 18, 2024
1 parent e5f9a9f commit 8c569d5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/check-spdx-license-id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ jobs:
uses: actions/[email protected]
- name: Check
run: |
#!/bin/bash
set -e
counter=0
search() {
local directory="$1"
find "$directory" -type f \
'(' \
-name "*.cjs" -and -not -name '*.config.cjs' -o \
-name "*.cjs" -and -not -name "*.config.cjs" -o \
-name "*.html" -o \
-name "*.js" -and -not -name '*.config.js' -o \
-name "*.mjs" -and -not -name '*.config.mjs' -o \
-name "*.js" -and -not -name "*.config.js" -o \
-name "*.mjs" -and -not -name "*.config.mjs" -o \
-name "*.scss" -o \
-name "*.ts" -and -not -name '*.config.ts' -o \
-name "*.ts" -and -not -name "*.config.ts" -o \
-name "*.vue" \
')' -and \
-not -name '*eslint*'
-not -name "*eslint*"
}
check() {
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:
)
for directory in "${directories[@]}"; do
for file in $(search $directory); do
for file in $(search "$directory"); do
check "$file"
done
done
Expand Down

0 comments on commit 8c569d5

Please sign in to comment.