-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add document for support array result #5311
Add document for support array result #5311
Conversation
if let str = args["delimiter"] as? String { | ||
func main(args: Any) -> Any { | ||
let dict = args as! [String:Any] | ||
if let str = dict["delimiter"] as? String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found relative test cases failed in our downstream, so need to fix it in upstream firstly.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5311 +/- ##
==========================================
- Coverage 81.12% 76.09% -5.03%
==========================================
Files 239 239
Lines 14192 14192
Branches 580 580
==========================================
- Hits 11513 10800 -713
- Misses 2679 3392 +713 ☔ View full report in Codecov by Sentry. |
And support array result for sequence action as well, the first action's array result can be used as next action's input parameter | ||
``` | ||
#!/bin/bash | ||
echo $1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is sequence action's second action. can accept the array as input parameter, and we can do some sort operation here,
But here, i just return it directly(don't add sort operation), just a example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/actions-docker.md
Outdated
@@ -236,6 +236,18 @@ DATE=`date` | |||
echo "{ \"message\": \"Hello $NAME! It is $DATE.\" }" | |||
``` | |||
|
|||
For the return result, not only support `dictionary` but also support `array` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `dictionary` but also support `array` | |
Action support not only `dictionary` but also `array` as a return value. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-docker.md
Outdated
echo '["a", "b"]'' | ||
``` | ||
|
||
And support array result for sequence action as well, the first action's array result can be used as next action's input parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And support array result for sequence action as well, the first action's array result can be used as next action's input parameter | |
You can also create a sequence action with actions returning an array result. | |
You can easily figure out the parameters with the following example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-dotnet.md
Outdated
@@ -79,6 +79,47 @@ cd out | |||
zip -r -0 helloDotNet.zip * | |||
``` | |||
|
|||
For the return result, not only support `dictionary` but also support `array` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `dictionary` but also support `array` | |
Action support not only a JSON object but also a JSON array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-dotnet.md
Outdated
@@ -79,6 +79,47 @@ cd out | |||
zip -r -0 helloDotNet.zip * | |||
``` | |||
|
|||
For the return result, not only support `dictionary` but also support `array` | |||
|
|||
So a very simple `hello array` function would be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So a very simple `hello array` function would be: | |
It would be a simple example that uses an array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-dotnet.md
Outdated
And support array result for sequence action as well, the first action's array result can be used as next action's input parameter. | ||
|
||
So the function can be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And support array result for sequence action as well, the first action's array result can be used as next action's input parameter. | |
So the function can be: | |
You can also create a sequence action with actions returning an array result. | |
You can easily figure out the parameters with the following example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-php.md
Outdated
For the return result, not only support `dictionary` but also support `array` | ||
|
||
So a very simple `hello array` function would be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `dictionary` but also support `array` | |
So a very simple `hello array` function would be: | |
Action support not only a JSON object but also a JSON array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-python.md
Outdated
For the return result, not only support `dictionary` but also support `array` | ||
|
||
So a very simple `hello array` function would be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `dictionary` but also support `array` | |
So a very simple `hello array` function would be: | |
Action support not only a JSON object but also a JSON array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-ruby.md
Outdated
For the return result, not only support `dictionary` but also support `array` | ||
|
||
So a very simple `hello array` function would be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `dictionary` but also support `array` | |
So a very simple `hello array` function would be: | |
Action support not only a JSON object but also a JSON array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-rust.md
Outdated
For the return result, not only support `A JSON serde Value` but also support `Array serde Value` | ||
|
||
So a simple `hello array` funtion would be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `A JSON serde Value` but also support `Array serde Value` | |
So a simple `hello array` funtion would be: | |
Action support not only a JSON object but also a JSON array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
docs/actions-swift.md
Outdated
For the return result, not only support `dictionary`, but also support `array` | ||
|
||
So a very simple `hello array` function woule be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the return result, not only support `dictionary`, but also support `array` | |
So a very simple `hello array` function woule be: | |
Action support not only a JSON object but also a JSON array as a return value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly
a7eda48
to
4b7d7ea
Compare
* Fix test case failed for swift * Add document based on support array result feature * Apply review comments
Description
Related issue and scope
My changes affect the following components
Types of changes
Checklist: