You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
jsonnet-render
v1
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_dir
to the Jsonnet invocation to render multiple output files to a single directory. OPTIONALplaintext
- when set to any value, Jsonnet is invoked with the-S
flag to emit plaintext rather than JSON-encoded output.
This Action has no outputs.
steps:
- id: jsonnet-render
uses: alexdglover/jsonnet-render@v1
with:
file: path/to/file.jsonnet
steps:
- id: jsonnet-render
uses: alexdglover/jsonnet-render@v1
with:
file: path/to/file.jsonnet
output_file: output/file.json
steps:
- id: jsonnet-render
uses: alexdglover/jsonnet-render@v1
with:
file: path/to/file.jsonnet
output_dir: output/