mirror of
https://github.com/actions/github-script.git
synced 2025-12-09 00:26:20 +00:00
Fix section not moved
This commit is contained in:
12
README.md
12
README.md
@@ -41,6 +41,12 @@ The return value of the script will be in the step's outputs under the
|
||||
run: echo "${{steps.my-script.outputs.result}}"
|
||||
```
|
||||
|
||||
See ["Result encoding"](#result-encoding) for details on how the encoding of
|
||||
these outputs can be changed.
|
||||
|
||||
This will print the full diff object in the screen; `result.data` will
|
||||
contain the actual diff text.
|
||||
|
||||
## Result encoding
|
||||
|
||||
By default, the JSON-encoded return value of the function is set as the "result" in the
|
||||
@@ -171,12 +177,6 @@ jobs:
|
||||
console.log(result)
|
||||
```
|
||||
|
||||
See ["Result encoding"](#result-encoding) for details on how the encoding of
|
||||
these outputs can be changed.
|
||||
|
||||
This will print the full diff object in the screen; `result.data` will
|
||||
contain the actual diff text.
|
||||
|
||||
### Run a separate file
|
||||
|
||||
If you don't want to inline your entire script that you want to run, you can
|
||||
|
||||
Reference in New Issue
Block a user