Runs an example action
Input Schema
| Property | Type | Description | Required |
|---|---|---|---|
| myParameter | string | This is an example parameter, don't set it to foo |
Output Schema
Usage Examples
Run with user-provided environment value
Runs the action with myParameter set from a user-provided environment parameter. Place it after fetch:template to run environment-specific logic during scaffolding.
steps:
- id: fetch-base
action: fetch:template
input:
url: ./skeleton
values:
name: ${{ parameters.name }}
environment: ${{ parameters.environment }}
- id: run-example-env
action: acme:example
input:
myParameter: ${{ parameters.environment }}Run with a fixed mode to enforce a default behavior
Runs the action with a fixed string so every scaffold uses the same mode. Use this after fetch:template when you do not want to expose a parameter to users.
steps:
- id: fetch-base
action: fetch:template
input:
url: ./skeleton
values:
name: ${{ parameters.name }}
- id: run-example-default
action: acme:example
input:
myParameter: initialize-ci