recih/Template Render Action
A github action to render ejs/mustache template files using github context.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| template-file | Input template file path. You must specify either a template file or a template string. | no | — |
| template | Input template string. You must specify either a template file or a template string. | no | — |
| glob | glob mode. You can render all files matching the glob pattern. If true, the `template-file` will be considered as a glob pattern. `template`/`output-file` will be ignored. `content` field in action output will not be set. The output file name will be the same as the input file name, without the file extension. eg. 'data.json.template' will be rendered to 'data.json' | no | false |
| vars | Input variables. A dictionary of variables to be used in the template. Or specify a .yml/.yaml/.json file path. | no | — |
| engine | Template engine. Default is ejs. Currently supported: ejs, mustache. | no | ejs |
| options | extra render options for the template engine. | no | {} |
| output-file | Output file path. If specified, the rendered template will be written to this file. Caution: If the file already exists, it will be overwritten. | no | — |
Outputs
| name | description |
|---|---|
| content | Output content. The rendered template. |