Render
github_custom_actions.ActionBase.render
render(template: str, **kwargs: Any) -> str
Render the template from the string with Jinja.
kwargs
are the template context variables.
Also includes to the context the action's inputs
, outputs
, and env
.
So you can use something like:
self.render("### {{ inputs.name }}!\nHave a nice day!")
github_custom_actions.ActionBase.render_template
render_template(template_name: str, **kwargs: Any) -> str
Render template from the templates
directory.
template_name
is the name of the template file without the extension.
kwargs
are the template context variables.
Also includes to the context the action's inputs
, outputs
, and env
.
Usage:
self.render_template("executor.json", image="ubuntu-latest")