You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,6 +309,7 @@ As seen above, we have two steps. One for a noop deploy, and one for a regular d
309
309
| `actor` | The GitHub handle of the actor that invoked the IssueOps command |
310
310
| `environment` | The environment that has been selected for a deployment |
311
311
| `params` | The raw parameters that were passed into the deployment command (see param_separator) - Further [documentation](docs/parameters.md) |
312
+
| `parsed_params` | A stringified JSON object of the parsed parameters that were passed into the deployment command - Further [documentation](docs/parameters.md) |
312
313
| `noop` | The string "true" if the noop trigger was found, otherwise the string "false" - Use this to conditionally control whether your deployment runs as a noop or not |
313
314
| `sha` | The sha of the branch to be deployed |
314
315
| `default_branch_tree_sha` | The sha of the default branch tree (useful for subsequent workflow steps if they need to do commit comparisons) |
**Why**: A user might need to deploy to the development environment and tell subsequent workflow steps to use a `LOG_LEVEL` of `debug` and `CPU_CORES` of `4`.
20
23
@@ -26,10 +29,28 @@ Here are a few examples of how to pass in parameters to the `.deploy` command an
**Why**: This example shows that the `params` output is just a string that can be literally anything your heart desires. It is up to the user to parse the string and use it in subsequent steps.
**Why**: This example shows that by using structure within your params string like `--key=value`, they can be automatically parsed into a JSON object and saved as the `parsed_params` output. This can be useful for users that want to pass in a number of parameters to their deployment and have them automatically parsed and saved as a JSON object as an output of this Action. Having machine readable output can be quite useful for subsequent workflow steps.
53
+
33
54
## Parameter Separator
34
55
35
56
The `param_separator` input defaults to `|` and will collect any text that is provided after this character and save it as a GitHub Actions output called `params`. This output can then be used in subsequent steps.
@@ -38,7 +59,7 @@ This value can be configured to be any character (or string) that you want.
38
59
39
60
## Parameter Output
40
61
41
-
The `params`output can be accessed just like any other output from the `branch-deploy` Action. Here is a quick example:
62
+
The `params`and `parsed_params` outputs can be accessed just like any other output from the `branch-deploy` Action. Here is a quick example:
42
63
43
64
```yaml
44
65
- name: branch-deploy
@@ -52,4 +73,5 @@ The `params` output can be accessed just like any other output from the `branch-
0 commit comments