Skip to content

Commit 2d09bdf

Browse files
authored
Update license_check.yml (#15)
show the name of the file that failed a check
1 parent a3743d6 commit 2d09bdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/license_check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
# We grep for Copyright, then pipe to grep for Jamf to ensure they are on the same line.
3030
if ! grep "Copyright" "$file" | grep -q "Jamf"; then
3131
echo "::error file=$file::Missing 'Copyright' and 'Jamf' on the same line."
32+
echo "File: ${file}"
3233
missing_reqs=1
3334
fi
3435
@@ -39,12 +40,14 @@ jobs:
3940
# Requirement 2: Specific license string
4041
if ! grep -Fq "This work is licensed under the terms of the Jamf Source Available License" "$file"; then
4142
echo "::error file=$file::Missing 'This work is licensed under the terms of the Jamf Source Available License'"
43+
echo "File: ${file}"
4244
missing_reqs=1
4345
fi
4446
4547
# Requirement 3: License URL
4648
if ! grep -Fq "https://github.com/jamf/scripts/blob/main/LICENCE.md" "$file"; then
4749
echo "::error file=$file::Missing 'https://github.com/jamf/scripts/blob/main/LICENCE.md'"
50+
echo "File: ${file}"
4851
missing_reqs=1
4952
fi
5053
fi

0 commit comments

Comments
 (0)