Skip to content

Commit b37a806

Browse files
committed
step
1 parent 1eaca4b commit b37a806

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

extra/ci_license_checks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ if [ -z "$SCANCODE_RESULTS" ]; then
99
exit 1
1010
fi
1111

12-
for NEW_FILE in $(git diff --name-only --diff-filter=A $GITHUB_BASE_SHA); do
12+
echo ref: $GITHUB_BASE_REF
13+
echo sha: $GITHUB_BASE_SHA
14+
for NEW_FILE in $(git diff --name-only --diff-filter=A $GITHUB_BASE_REF); do
1315
if echo $NEW_FILE | grep -qE '\.(c|cpp|h|hpp|py|js|ts|go)$'; then
1416
KIND="source"
1517
else
@@ -34,7 +36,7 @@ for NEW_FILE in $(git diff --name-only --diff-filter=A $GITHUB_BASE_SHA); do
3436
[ -z "$COPYRIGHT" ] && MSG="${MSG}${MSG:+ and }copyright"
3537
MSG="Missing $MSG information"
3638
# missing info in source files is an error, in other files is a warning
37-
if $IS_SOURCE ; then
39+
if [ $KIND == "source" ] ; then
3840
TYPE="error"
3941
else
4042
TYPE="warning"

0 commit comments

Comments
 (0)