Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99889c2 commit de1677bCopy full SHA for de1677b
README.md
@@ -132,3 +132,19 @@ jobs:
132
133
This will print the full diff object in the screen; `result.data` will
134
contain the actual diff text.
135
+
136
+### Result encoding
137
138
+By default, the JSON-encoded return value of the function is set as the "result" in the
139
+output of a github-script step. For some workflows, string encoding is preferred. This option can be set using the
140
+`result-encoding` input:
141
142
143
+```yaml
144
+- uses: actions/[email protected]
145
+ with:
146
+ github-token: ${{secrets.GITHUB_TOKEN}}
147
+ result-encoding: string
148
+ script: |
149
+ return "I will be string (not JSON) encoded!"
150
+```
0 commit comments