Basic example:
steps:
- uses: gazab/create-markdown-table@v1
id: create_table
with:
file: ./table-data.json
- run: echo ${{ steps.create_table.outputs.table }}
With specific columns specified
steps:
- uses: gazab/create-markdown-table@v1
id: create_table
with:
file: ./table-data.json
columns: '[ "Id", "Name" ]'
- run: echo ${{ steps.create_table.outputs.table }}
(Required) Path to the JSON/YAML file to convert to a Markdown table
JSON formatted list of columns and their order you want the table to include. Default: All properties of the first object in the input file.
Capitalize the first letter of each column name in the header. Default: true
.
The created Markdown table