Skip to content

Commit a7e5b90

Browse files
chore: duh, of course the ts needs to be compiled...
1 parent 7b6a8d2 commit a7e5b90

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

dist/index.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28018,11 +28018,11 @@ async function run() {
2801828018
let baseUrl;
2801928019
let bbRunUuid;
2802028020
const stepId = core.getInput('step_id');
28021-
const status = core.getInput('status');
28021+
const stepStatus = core.getInput('step_status');
2802228022
const userMessage = core.getInput('user_message');
2802328023
const systemMessage = core.getInput('system_message');
28024-
const summary = core.getInput('summary');
28025-
const finalStatus = core.getInput('final_status');
28024+
const runStatus = core.getInput('run_status');
28025+
const outputsJson = core.getInput('outputs_json');
2802628026
const tempDir = process.env.RUNNER_TEMP || os.tmpdir();
2802728027
core.debug(`Temporary directory: ${tempDir}`);
2802828028
console.log(`Temporary directory: ${tempDir}`); // This will also print the path to the console
@@ -28053,15 +28053,15 @@ async function run() {
2805328053
return;
2805428054
}
2805528055
const data = {
28056-
status: finalStatus ? finalStatus : "IN_PROGRESS",
28057-
summary: summary
28056+
status: runStatus ? runStatus : "IN_PROGRESS",
2805828057
};
2805928058
if (stepId) {
2806028059
data.steps = [{
2806128060
id: stepId,
28062-
status: status,
28061+
status: stepStatus,
2806328062
userMessage: userMessage,
28064-
systemMessage: systemMessage
28063+
systemMessage: systemMessage,
28064+
outputs: outputsJson && JSON.parse(outputsJson)
2806528065
}];
2806628066
}
2806728067
;
@@ -28079,6 +28079,10 @@ async function run() {
2807928079
catch (error) {
2808028080
if (error instanceof Error) {
2808128081
core.setFailed(error.message);
28082+
if (error.response) {
28083+
core.error(`API response status: ${error.response.status}`);
28084+
core.error(`API response data: ${JSON.stringify(error.response.data)}`);
28085+
}
2808228086
}
2808328087
else {
2808428088
core.setFailed('An unknown error occurred');

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ async function run() {
1616
const runStatus = core.getInput('run_status');
1717
const outputsJson = core.getInput('outputs_json');
1818

19-
console.log(`Step ID: ${stepId}`);
20-
console.log(`Step Status: ${stepStatus}`);
21-
2219
const tempDir = process.env.RUNNER_TEMP || os.tmpdir();
2320
core.debug(`Temporary directory: ${tempDir}`);
2421
console.log(`Temporary directory: ${tempDir}`); // This will also print the path to the console

0 commit comments

Comments
 (0)