You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support to "Check License" for checking license files in multiple paths
In cases where a project contains distinct components in subfolders, multiple license files might be present.
Previously the "Check License" workflow only supported checking the license file in the root of the repository. Support
for validating an arbitrary number of license files with arbitary locations, types, and filenames is added. A job matrix
is used to provide this support in a manner that makes application-specific configuration of the workflow easy and
without code duplication.
Copy file name to clipboardExpand all lines: workflow-templates/check-license.md
+1
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Install the [`check-license.yml`](check-license.yml) GitHub Actions workflow to
14
14
15
15
- Configure the license filename in the `env.EXPECTED_LICENSE_FILENAME` field of `check-license.yml`.
16
16
- Configure the license type in the `env.EXPECTED_LICENSE_TYPE` field of `check-license.yml`.
17
+
- (Optional) If license files should be present outside the root directory, add the configuration for additional paths to the `jobs.check-license.strategy.matrix.licenses` array in `check-license.yml`.
0 commit comments