Skip to content

Disable input normalization when `inputs` declares a pattern

Current situation

Inputs are normalized for function (that is, _ are replaced by -). This can cause issues with functions that take parameters that match a pattern, such as prepare-inception.

Desired outcome

The input normalization should not occur if a pattern is specified in the inputs manifest section (that is, something that starts with {, such as:

events:
- categoryPrefix: actions
  category: prepare-inception
inputs:
  "{pattern}":
    description: the pattern that identifies the files to attach
    required: false