lukew3 / json-fill-erb-action

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v3.0


Languages

Language:Ruby 78.4%Language:Dockerfile 21.6%