Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Introduce target file support for processed source files #54

Merged
merged 1 commit into from
Dec 14, 2022

Commits on Dec 8, 2022

  1. [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'
    eliashaeussler committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    a4aabed View commit details
    Browse the repository at this point in the history