Skip to content

Latest commit

 

History

History
81 lines (55 loc) · 1.63 KB

File metadata and controls

81 lines (55 loc) · 1.63 KB

Usage examples

All examples are based on this folder's action.yml.

Synopsis of markdown/md command

actions-docs markdown [command options]

Options

--create-file   (default: false)
--format value  (default: "table")
--help, -h      show help (default: false)

Intputs and outputs as table printed to stdout

actions-docs md
## Inputs

| Name | Description | Required | Default |
|------|-------------|----------|:-------:|
| `greeting` | Which greeting do you want to use | no | `Howdy` |
| `version` | Version of the action | no | `v1.2.3` |
| `who-to-greet` | Who do you want to greet | yes | - |

## Outputs

| Name | Description |
|------|:-----------:|
| who-did-i-greet | Who did you greet |

Inputs and outputs as list printed to stdout

actions-docs md --format=list
## Inputs

- `greeting`: Which greeting do you want to use. Is not required. Defaults to `Howdy`
- `version`: Version of the action. Is not required. Defaults to `v1.2.3`
- `who-to-greet`: Who do you want to greet. Is required.

## Outputs

- `who-did-i-greet`: Who did you greet

Generate file with inputs and outputs as list

actions-docs md --create-file --format=list

Creates a README.md file with the content:

# example-action

Sample action which basically does nothing.

## Inputs

- `greeting`: Which greeting do you want to use. Is not required. Defaults to `Howdy`
- `version`: Version of the action. Is not required. Defaults to `v1.2.3`
- `who-to-greet`: Who do you want to greet. Is required.

## Outputs

- `who-did-i-greet`: Who did you greet