defenseunicorns / maru-runner

The Unicorn Task Runner
Apache License 2.0
8 stars 0 forks source link

Ensure Runner Templating is consistent #83

Open UncleGedd opened 6 months ago

UncleGedd commented 6 months ago

When creating task that has inputs such as the one below, you can use Go templating in the actions:

  - name: no-default
    inputs:
      no-default:
        description: has no default
    actions:
      - cmd: |
          echo success + ${{ index .inputs "no-default" }}

Ensure that you can use the same Go templating in Actions that don't have an inputs key; in other words, make templates consistent in the runner