generated from professional-service-best-practices/best-practice-template
init
This commit is contained in:
parent
6976ff0290
commit
61191cce38
16 changed files with 880 additions and 76 deletions
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
# Only checks for the presence of the word "Copyright" in the first line.
|
||||
KEYWORD="Copyright"
|
||||
for file in $(find . -maxdepth 1 -name "*.tf"); do
|
||||
if ! head -n 1 "$file" | grep -q "$KEYWORD"; then
|
||||
if ! head -n 2 "$file" | grep -q "$KEYWORD"; then
|
||||
echo "::error file=$file,line=1::A copyright header is missing or incorrect in the first line."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue