This action forked from actions-license and do some customization.
-
Use
fast-glob
to replaceglob
to improve performance. -
Support
include
pattern configuration. -
Support manually trigger workflow through specifying
commit-from
andcommit-to
ids. -
Date
check is optional.
- create
.github/license-check.json
or specify concrete path inaction inputs: config-path
like the following:
"copyright": [ // Put your license here in a array format
"Copyright",
"Licensed under the **, Version 2.0 (the \"License\");"
],
"include": [ // Put the file pattern you want to include on the check, default is **/*.*
"**/*.*"
],
"ignore": [ // Put the file pattern you want to ignore on the check
"**/node_modules/**",
"**/.git/**",
"**/.gradle/**",
"**/.DS_Store/**",
"**/.nyc_output/**",
"**/.vscode/**",
"**/.vs/**",
"**/.idea/**",
"**/*.xcworkspace/**"
],
"startDateLicense": 2020 // Specify the license date to check, it is not required
- You can also manually trigger workflow through set
commit-from
andcommit-to
ids.