Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28045,6 +28045,11 @@ async function run() {
core.setFailed(error instanceof Error ? error.message : 'Unknown error occurred while parsing outputs_json');
return;
}
// when the user attempst to only resolve the run, provide a failure message
if ((stepStatus || userMessage || systemMessage || outputsJsonInput) && !stepId) {
core.setFailed('step_id must be provided when setting step_status, user_message, system_message, or outputs_json');
return;
}
const tempDir = process.env.RUNNER_TEMP || os.tmpdir();
core.debug(`Temporary directory: ${tempDir}`);
console.log(`Temporary directory: ${tempDir}`); // This will also print the path to the console
Expand Down
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ async function run() {
return;
}

// when the user attempst to only resolve the run, provide a failure message
if ((stepStatus || userMessage || systemMessage || outputsJsonInput) && !stepId) {
core.setFailed('step_id must be provided when setting step_status, user_message, system_message, or outputs_json');
return;
}

const tempDir = process.env.RUNNER_TEMP || os.tmpdir();
core.debug(`Temporary directory: ${tempDir}`);
console.log(`Temporary directory: ${tempDir}`); // This will also print the path to the console
Expand Down