A GitHub action for executing Jsonnet. Typical usage will be to render Jsonnet files and combine them with another GitHub action to:
- post the rendered result as a comment on a PR
- create a pull request or new commit with the rendered files
file- specifies the Jsonnet file to be rendered. REQUIREDoutput_file- when set, writes the STDOUT from Jsonnet invocation to $output-file. OPTIONALoutput_dir- when set, appends-m $output_dirto the Jsonnet invocation to render multiple output files to a single directory. OPTIONALplaintext- when set to any value, Jsonnet is invoked with the-Sflag to emit plaintext rather than JSON-encoded output.params- specify external--ext-strarguments.dryrun=true env=prodbecomes--ext-str dryrun=true --ext-str env=prod. Use either of comma, space or semicolon as argument separator. OPTIONAL
This Action has no outputs.
steps:
- id: jsonnet-render
uses: alexdglover/jsonnet-render@v2
with:
file: path/to/file.jsonnetsteps:
- id: jsonnet-render
uses: alexdglover/jsonnet-render@v2
with:
file: path/to/file.jsonnet
output_file: output/file.json
params: dryrun=true env=prodsteps:
- id: jsonnet-render
uses: alexdglover/jsonnet-render@v2
with:
file: path/to/file.jsonnet
output_dir: output/
params: dryrun=true;env=prod