Merge pull request #5849 from SDA-SE/feat/scaffolder-conditional

Conditional scaffolder steps
This commit is contained in:
Fredrik Adelöw
2021-06-08 14:25:49 +02:00
committed by GitHub
26 changed files with 554 additions and 53 deletions
@@ -722,7 +722,7 @@ You can find out more about the `steps` key
### `spec.owner` [optional]
An [entity reference](#string-references) to the owner of the component, e.g.
An [entity reference](#string-references) to the owner of the template, e.g.
`artist-relations-team`. This field is required.
In Backstage, the owner of a Template is the singular entity (commonly a team)
@@ -288,6 +288,7 @@ template. These follow the same standard format:
```yaml
- id: fetch-base # A unique id for the step
name: Fetch Base # A title displayed in the frontend
if: '{{ parameters.name }}' # Optional condition, skip the step if not truthy
action: fetch:cookiecutter # an action to call
input: # input that is passed as arguments to the action handler
url: ./template