@@ -21,11 +21,22 @@ Generate file output from a JSON string.
21
21
22
22
The above example will create a file named ` color.txt` in the `output` directory with the contents `green`.
23
23
24
-
25
24
# # Inputs
26
25
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 -->
27
37
28
38
# # CLI Reference
39
+
29
40
Run `json2file --help` for more information.
30
41
31
42
` ` ` bash
@@ -49,7 +60,6 @@ Example:
49
60
json2file --keys=foo,bar --outputs="{\" foo\" : \" value1\" , \" bar\" : \" value2\" }" --directory=/tmp --extension=tx
50
61
` ` `
51
62
52
-
53
63
* Free software: [MIT license](LICENSE)
54
64
55
65
If you feel generous and want to show some extra appreciation :
@@ -73,4 +83,3 @@ If you are reporting a bug, please include:
73
83
* Your operating system name and VERSION.
74
84
* Any details about your workflow that might be helpful in troubleshooting.
75
85
* Detailed steps to reproduce the bug.
76
-
0 commit comments