This commit is contained in:
Markus Brunsch 2025-11-19 15:33:57 +01:00
parent 6976ff0290
commit 61191cce38
Signed by: markus.brunsch
GPG key ID: 67DD0736F0BE59BF
16 changed files with 880 additions and 76 deletions

View file

@ -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