Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed May 18, 2023
1 parent e9b3da7 commit 7ba817e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
- name: "Check for files without a license header"
run: |-
# checks all java, yaml, kts and sql files for an Apache 2.0 license header
result=$(grep -riL "SPDX-License-Identifier: Apache-2.0" --include=\*.{java,yaml,yml,kts,sql} --exclude-dir={.gradle,\*\openapi} .)
violations=$(echo $result | wc -l)
cmd="grep -riL \"SPDX-License-Identifier: Apache-2.0\" --include=\*.{java,yaml,yml,kts,sql} --exclude-dir={.gradle,\*\openapi} ."
violations=$(eval $cmd | wc -l)
if [[ $violations -ne 0 ]] ; then
echo "$violations files without license headers were found:";
echo $result;
eval $cmd;
exit 1;
fi
Expand Down

0 comments on commit 7ba817e

Please sign in to comment.