Skip to content

Commit

Permalink
add new index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian authored and Florian committed Nov 18, 2024
1 parent f3e8b3e commit ba26c47
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28021,8 +28021,8 @@ async function run() {
const status = core.getInput('status');
const userMessage = core.getInput('user_message');
const systemMessage = core.getInput('system_message');
const isFinal = core.getInput('is_final') === 'true';
const summary = core.getInput('summary');
const finalStatus = core.getInput('final_status');
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 Expand Up @@ -28053,17 +28053,18 @@ async function run() {
return;
}
const data = {
status: isFinal ? status : "IN_PROGRESS",
steps: [{
status: finalStatus ? finalStatus : "IN_PROGRESS",
summary: summary
};
if (stepId) {
data.steps = [{
id: stepId,
status: status,
userMessage: userMessage,
systemMessage: systemMessage
}]
};
if (isFinal) {
data.summary = summary;
}];
}
;
core.debug(`Constructed data object: ${JSON.stringify(data)}`);
console.log(`Constructed data object: ${JSON.stringify(data)}`);
const response = await axios_1.default.patch(`${baseUrl}/api/meshobjects/meshbuildingblockruns/${bbRunUuid}/status/source/github`, data, {
Expand Down

0 comments on commit ba26c47

Please sign in to comment.