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 a48ef4f commit 4765368Copy full SHA for 4765368
action.yml
@@ -140,5 +140,15 @@ runs:
140
}
141
} catch (error) {
142
console.error(`❌ Error processing ${{ inputs.label }} results:`, error);
143
+
144
+ // Detect when user forgot to return a value (causing body = undefined)
145
+ if ( error.code === 'ERR_INVALID_ARG_TYPE' && /The "data" argument must be of type string/i.test(error.message)) {
146
+ console.error(
147
+ `💡 Hint: Your script did not return a string. ` +
148
+ `Make sure to end your script with a 'return' statement that produces a string, ` +
149
+ `for example:\n\n return "✅ My script completed successfully.";`
150
+ );
151
+ }
152
153
core.setOutput('result', JSON.stringify({ error: error.message }));
154
0 commit comments