Skip to content

Commit a5afc8a

Browse files
cynthiajoangoogle-labs-jules[bot]
authored andcommitted
fix(ci): ignore .gradle files in license check (#17625)
The `check-license-header` script was failing with a `permission denied` error on `.gradle` files. This is because the `addlicense` tool was trying to process these files, which are build scripts and should not have license headers. This commit fixes the issue by adding an ignore pattern for `.gradle` files to the `addlicense` command in both the `check-license-header` and `add-license-header` scripts in `melos.yaml`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent acbe4da commit a5afc8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

melos.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ scripts:
263263
# "check-license-header".
264264
run: |
265265
addlicense -f header_template.txt \
266+
--ignore "**/*.gradle" \
266267
--ignore "**/*.yml" \
267268
--ignore "**/*.yaml" \
268269
--ignore "**/*.xml" \
@@ -303,6 +304,7 @@ scripts:
303304
run: |
304305
addlicense -f header_template.txt \
305306
--check \
307+
--ignore "**/*.gradle" \
306308
--ignore "**/*.yml" \
307309
--ignore "**/*.yaml" \
308310
--ignore "**/*.xml" \

0 commit comments

Comments
 (0)