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 a602b56 commit af1acfeCopy full SHA for af1acfe
action.yml
@@ -113,6 +113,14 @@ runs:
113
// Store the result as an output for downstream steps
114
core.setOutput('result', JSON.stringify(body));
115
116
+ // Validate that the returned body is a string
117
+ if (typeof body !== 'string') {
118
+ throw new TypeError(
119
+ `Returned value from user script must be a string. Received type '${typeof body}'. ` +
120
+ `Please return a string, or serialize your result using JSON.stringify.`
121
+ );
122
+ }
123
+
124
// Output to GITHUB_STEP_SUMMARY
125
if (postTarget === 'both' || postTarget === 'github-step-summary') {
126
const summaryPath = process.env.GITHUB_STEP_SUMMARY;
0 commit comments