This commit is contained in:
Sébastiaan 2025-01-05 14:17:16 +01:00
parent 1bbd26a954
commit ee8b2185f9
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ jobs:
run: |
NON_COMPLIANT_FILES=""
for FILE in ${{ steps.changed-files.outputs.files }}; do
if [[ "$(sed -n '3p' "$FILE")" != "# Copyright (c) 2021-2025 community-scripts ORG" ]]; then
if ! sed -n '3p' "$FILE" | { grep -qE "^# Copyright (c) [0-9]{4}(-[0-9]{4})? (community-scripts ORG|tteck|community-scripts ORG \| tteck)$" || false }; then
NON_COMPLIANT_FILES="$NON_COMPLIANT_FILES $FILE"
fi
done