Skip to content

Create Markdown Table

Actions
Generate a markdown table from a JSON or YAML file
v1.0.7
Latest
Star (4)

create-markdown-table status

Create Markdown Table Action

Usage

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 }}

Inputs

file

(Required) Path to the JSON/YAML file to convert to a Markdown table

columns

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

Capitalize the first letter of each column name in the header. Default: true.

Outputs

table

The created Markdown table

Create Markdown Table is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Generate a markdown table from a JSON or YAML file
v1.0.7
Latest

Create Markdown Table is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.