Skip to content

CLI: Substitutions not substituted everywhere #965

@bertbesser

Description

@bertbesser

My goal is to use a substitutions for container labels, like e.g.

steps:
  - id: some-id
    uses: some-image
    options:
      labels:
        sample-label: $_POPPER_SUBST_LABEL
    args: some-args

However, popper does substitutions only within top-level keys of each step (e.g. id) and top-level dicts (e.g. env), but not further down the yaml tree.

Observed behavior

popper run -f the-above-wf.yml --substitution _POPPER_SUBST_LABEL=this-should-appear results in

steps:
  - id: some-id
    uses: some-image
    options:
      labels:
        sample-label: $_POPPER_SUBST_LABEL
    args: some-args

instead of the expected output.

Expected behavior

steps:
  - id: some-id
    uses: some-image
    options:
      labels:
        sample-label: this-should-appear
    args: some-args

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions