File tree 1 file changed +6
-1
lines changed
.github/workflows/scripts
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ fatal() { error "$@"; exit 1; }
19
19
20
20
test -n " ${PROJECT_NAME:- } " || fatal " PROJECT_NAME unset"
21
21
22
- expected_file_header_template=" @@===----------------------------------------------------------------------===@@
22
+ if [ -f .license_header_template ]; then
23
+ # allow projects to override the license header template
24
+ expected_file_header_template=$( cat .license_header_template)
25
+ else
26
+ expected_file_header_template=" @@===----------------------------------------------------------------------===@@
23
27
@@
24
28
@@ This source file is part of the ${PROJECT_NAME} open source project
25
29
@@
@@ -32,6 +36,7 @@ expected_file_header_template="@@===--------------------------------------------
32
36
@@ SPDX-License-Identifier: Apache-2.0
33
37
@@
34
38
@@===----------------------------------------------------------------------===@@"
39
+ fi
35
40
36
41
paths_with_missing_license=( )
37
42
You can’t perform that action at this time.
0 commit comments