/json-fill-erb-action

A Github Action to render an erb template with data from a json file.

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

Json Fill Erb Action

A Github Action to render an erb template with data from a json file.

Each value in the top level of the provided json object will be it's own variable usable in the erb.

See https://github.com/lukew3/resume for an example of how this can be used.

Usage

Add the following step to your github action:

- uses: lukew3/json-fill-erb-action@main
  with:
    json_path: path/to/resume.json
    erb_path: path/to/file.txt.erb
    out_path: path/to/file.txt