Skip to content

This action runs an Archetect render command using template files contained in source and outputs to destination

License

Notifications You must be signed in to change notification settings

archetect/archetect-render-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archetect render GitHub Action

Maintained by Scaffoldly GitHub release (latest SemVer) Archetect Version

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).

Inputs

source (Required)

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

destination (Optional)

The destination of the rendered output

Default: .

options (Optional)

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)

commit (Optional)

If set, changes will be committed back into the repository

Default: "true"

post-render-command (Optional)

If set, a command to run post rendering (e.g. code formatting)

Default: ""

Outputs

This action has no outputs

Example usage

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"

About

This action runs an Archetect render command using template files contained in source and outputs to destination

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published