Table generator
This GitHub Action creates a html table in your README.md
from a json file.
Inputs
github-token
[REQUIRED]
This is available in your GitHub Action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
html-cell
[REQUIRED]
This is the html table cell content with object-field-names
with:
html-cell: '<td>{{ firstname }} {{ lastname }}</td>'
object-field-names
[REQUIRED]
This is json, and contains a list of the names of the fields in your json file data object
with:
object-field-names: '[ "firstname", "lastname" ]'
columns
[OPTIONAL]
defaults to 2
with:
columns: 3
json-file-path
[OPTIONAL]
defaults to data.json
with:
json-file-path: 'your-filename.json'
file-to-use
[OPTIONAL]
Defaults to README.md
with:
file-to-use: 'README.md'
section-name
[OPTIONAL]
This allows you to change the data-section
name in the comments to something else.
This also allows multiple runs on the same file, for different sections.
defaults…