tortellini-tools / action

GH action to check dependency licence issues using ort

Home Page:https://github.com/marketplace/actions/tortellini-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make cleaning optional

fdiblen opened this issue · comments

Removing in/ folder and intermediate files in out/ folder should be controlled by an input to the action.

Example:

    - uses: tortellini-tools/action@main
      with:
        keep_intermediate: true

Maybe instead of boolean flags we could have an array with strings from an enum, like

    - uses: tortellini-tools/action@main
      with:
        keep:
          - clone
          - analyze
          - gitlab

anbd then somewhere in the code

if ('clone' in keep) {
    // keep clone results
} else {
    // throw away clone results
}


if ('gitlab' in keep) {
    // keep gitlab results
} else {
    // throw away gitlab results
}

// etc