Accept json or string encoding of result

This commit is contained in:
Jonathan Clem
2020-01-08 14:39:09 -05:00
parent 1a49f59545
commit 622ce3121a
3 changed files with 41 additions and 4 deletions

View File

@@ -19,6 +19,9 @@ inputs:
default: actions/github-script
previews:
description: A comma-separated list of API previews to accept
result-encoding:
description: Either "string" or "json" (default "json")—how the result will be encoded
default: json
outputs:
result:
description: The return value of the script, stringified with `JSON.stringify`