-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Introduce target file support for processed source files
This commit introduces a new schema configuration "target" for file conditions within step configuration for processed source files and processed shared source files. It allows to override the default path determination behavior, e.g. when multiple files exist as source files, while they should have the same target name, depending on a given file condition. Example: Two source files `LICENSE.GPL-2.0.txt` and `LICENSE.GPL-3.0.txt` exist. Both files must be named `LICENSE.txt` in the resulting project. The file processing itself depends on given conditions: If the user selects "GPL 2.0" as license, `LICENSE.GPL-2.0.txt` will be processed, if "GPL 3.0" is selected, `LICENSE.GPL-3.0.txt` will be processed. Example configuration: steps: - type: processSourceFiles fileConditions: - path: 'LICENSE.GPL-2.0.txt' if: 'license == "GPL-2.0"' target: 'LICENSE.txt' - path: 'LICENSE.GPL-3.0.txt' if: 'license == "GPL-3.0"' target: 'LICENSE.txt'
- Loading branch information
1 parent
c871a66
commit b9a0bf2
Showing
11 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters