github-workflows-kt icon indicating copy to clipboard operation
github-workflows-kt copied to clipboard

[Core feature request] add missing properties to WorkflowCall trigger

Open benkeil opened this issue 2 years ago • 2 comments

What feature do you need?

WorkflowCall should have the properties inputs, outputs and secrets, see GitHub documentation

Do you have an example usage?

like WorkflowDispatch

WorkflowCall(
  inputs = mapOf(
    "foo" to WorkflowCall.Input(
      "description",
      required = true,
      WorkflowDispatch.Type.String
    )
  ),
  secrets = mapOf(
    "bar" to WorkflowCall.Secret(
      "description",
      required = true,
    )
  )
)

Is there a workaround for not having this feature? If yes, please describe it.

use _customArguments

benkeil avatar Jan 11 '23 22:01 benkeil

Should inputs also be part of Contexts?

benkeil avatar Jan 12 '23 20:01 benkeil

For each item from the GitHub contexts, I'm trying to figure out if it would be good to add specialized support for it, or just map it as is. E.g. for inputs, I'd like them to be defined on the workflow level in such way that allows accessing them from within the workflow in a type-safe way. Similarly with outputs, not sure what about secrets. If you have capacity, feel free to propose a change, then we can discuss!

krzema12 avatar Jan 13 '23 06:01 krzema12