Skip to content

Commit 993b179

Browse files
authored
Merge pull request #4 from tj-actions/chore/update-readme
2 parents 1b942b1 + f8fce29 commit 993b179

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,22 @@ Generate file output from a JSON string.
2121
2222
The above example will create a file named `color.txt` in the `output` directory with the contents `green`.
2323

24-
2524
## Inputs
2625

26+
<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->
27+
28+
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
29+
|-----------|--------|----------|------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
30+
| bin\_path | string | false | `"target/release/json2file"` | Path to the binary |
31+
| directory | string | true | `"outputs"` | Directory to write to |
32+
| extension | string | false | `"txt"` | File extension to use |
33+
| keys | string | true | | Comma separated list of Keys<br>to read from the outputs.<br>Example: foo,bar |
34+
| outputs | string | true | | String output from a previous<br>step. Example: ${{ steps.<step-id>.outputs }}<br>which pass {"foo": "value1", "bar":<br>"value2"} |
35+
36+
<!-- AUTO-DOC-INPUT:END -->
2737

2838
## CLI Reference
39+
2940
Run `json2file --help` for more information.
3041

3142
```bash
@@ -49,7 +60,6 @@ Example:
4960
json2file --keys=foo,bar --outputs="{\"foo\": \"value1\", \"bar\": \"value2\"}" --directory=/tmp --extension=tx
5061
```
5162

52-
5363
* Free software: [MIT license](LICENSE)
5464

5565
If you feel generous and want to show some extra appreciation:
@@ -73,4 +83,3 @@ If you are reporting a bug, please include:
7383
* Your operating system name and VERSION.
7484
* Any details about your workflow that might be helpful in troubleshooting.
7585
* Detailed steps to reproduce the bug.
76-

0 commit comments

Comments
 (0)