This action runs an Archetect render
command using template files contained in source
and outputs to destination
.
source
can be a directory relative to where the action is running or a URL to
a Git repository (e.g. https://github.com/scaffoldly/archetype-scaffoldly-bootstrap.git
).
The source directory or Git repo containing an archetype.yml
Can also contain an optional Git Reference, e.g. https://github.com/scaffoldly/archetype-scaffoldly-bootstrap.git#1.0.0
The destination of the rendered output
Default: .
Additional command-line options for the archetect command (e.g. -a
, -A
, -s
)
From archetect render --help
:
FLAGS:
-h, --help
Prints help information
-o, --offline
Only use directories and already-cached remote git URLs
-V, --version
Prints version information
-v, --verbose
Increases the level of verbosity
OPTIONS:
-a, --answer <key=value>...
Supply a key=value pair as an answer to a variable question. This option may be specified more than once.
Valid Input Examples:
key=value
key='multi-word value'
key="multi-word value"
"key=value"
'key=value'
'key="multi-word value"'
"key = 'multi-word value'"
-A, --answer-file <path>...
Supply an answers file as answers to variable questions. This option may be specified more than once.
-s, --switch <switches>...
Enable switches that may trigger functionality within Archetypes
Default: `` (empty string)
If set, changes will be committed back into the repository
Default: "true"
If set, a command to run post rendering (e.g. code formatting)
Default: ""
This action has no outputs
Run a archetect render
and provide answers as options
:
- uses: actions/checkout@v2
- uses: scaffoldly/archetect-render-action@v1
with:
source: "https://github.com/scaffoldly/archetype-scaffoldly-bootstrap.git"
options: "-a nonlive_domain=myproject.dev -a live_domain=myproject.com"
Run a archetect render
and provide an answers file:
- uses: actions/checkout@v2
- uses: scaffoldly/archetect-render-action@v1
with:
source: "https://github.com/scaffoldly/archetype-scaffoldly-bootstrap.git"
options: "-A ./path/to/answers.yml"