Skip to content

Commit

Permalink
WIP: multiline description
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Dec 19, 2023
1 parent 3541588 commit 13a3202
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 6 additions & 1 deletion create-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ create_cluster ---> cluster_kubeconfig
| nodes | | False | Number of nodes to provision |
| instance-type | | False | Instance type to provision |
| timeout-minutes | 20 | False | Time to wait for the cluster to have a status of `running` |
| tags | | False | Tags to assign to the cluster.<br>Example:<br>```<br>tags: \|<br> - key: "department"<br> value: "engineering"<br>```<br> |
| tags | | False | Tags to assign to the cluster. Example: ```
tags: \|
- key: "department"
value: "engineering"
```
|
| kubeconfig-path | | False | If specified, the kubeconfig will be written to this path |
| export-kubeconfig | false | False | Export the KUBECONFIG variable (true/false) |
Expand Down
4 changes: 1 addition & 3 deletions create-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ inputs:
default: '20'
tags:
description: |
Tags to assign to the cluster.
Example:
```
Tags to assign to the cluster. Example: ```
tags: \|
- key: "department"
value: "engineering"
Expand Down
2 changes: 1 addition & 1 deletion docs/generate-readme/action-to-mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def generate_inputs(action_yaml_file):
defaultVal = data['inputs'][input_name]['default'] if 'default' in data['inputs'][input_name] else ""
requiredVal = data['inputs'][input_name]['required'] if 'required' in data['inputs'][input_name] else True
descriptionVal = data['inputs'][input_name]['description'] if 'description' in data['inputs'][input_name] else ""
inputs += "| " + input_name + " | " + defaultVal + " | " + str(requiredVal) + " | " + descriptionVal.replace('\n','<br>') + " |\n"
inputs += "| " + input_name + " | " + defaultVal + " | " + str(requiredVal) + " | " + descriptionVal + " |\n"

return inputs

Expand Down

0 comments on commit 13a3202

Please sign in to comment.