fix: remove deprecated ::set-output syntax from hibernation scripts

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5f9ab8cb-efbe-4b0f-ba7c-3ee7664db5ee
This commit is contained in:
copilot-swe-agent[bot] 2026-03-24 04:14:08 +00:00
parent dbe0bb3dc4
commit 991f640b75
3 changed files with 10 additions and 10 deletions

View File

@ -277,10 +277,10 @@ function run() {
console.log(` 修复: ${checkpoint.issues_auto_fixed} 项`); console.log(` 修复: ${checkpoint.issues_auto_fixed} 项`);
console.log('═══════════════════════════════════════════════'); console.log('═══════════════════════════════════════════════');
// 输出供 workflow 使用 // 输出关键结果到 stdout 方便 workflow 日志检索
console.log(`::set-output name=checkpoint_id::${checkpoint.checkpoint_id}`); console.log(`[RESULT] checkpoint_id=${checkpoint.checkpoint_id}`);
console.log(`::set-output name=optimizations::${optimizations.length}`); console.log(`[RESULT] optimizations=${optimizations.length}`);
console.log(`::set-output name=guards_online::${Object.keys(healthResults.guards).length}`); console.log(`[RESULT] guards_online=${Object.keys(healthResults.guards).length}`);
return checkpoint; return checkpoint;
} }

View File

@ -71,11 +71,11 @@ function run() {
console.log(` 超出阈值 ${OVERTIME_THRESHOLD * 100}%(预计 ${result.threshold}min)`); console.log(` 超出阈值 ${OVERTIME_THRESHOLD * 100}%(预计 ${result.threshold}min)`);
// 输出供 readme-status-updater 使用 // 输出供 readme-status-updater 使用
console.log(`::set-output name=overtime::true`); console.log(`[RESULT] overtime=true`);
console.log(`::set-output name=message::${result.message}`); console.log(`[RESULT] message=${result.message}`);
} else { } else {
console.log(`✅ 休眠时间正常,剩余 ${result.remaining}min`); console.log(`✅ 休眠时间正常,剩余 ${result.remaining}min`);
console.log(`::set-output name=overtime::false`); console.log(`[RESULT] overtime=false`);
} }
return result; return result;

View File

@ -476,9 +476,9 @@ function run() {
fs.writeFileSync(outputPath, JSON.stringify(result, null, 2) + '\n', 'utf8'); fs.writeFileSync(outputPath, JSON.stringify(result, null, 2) + '\n', 'utf8');
console.log(`[SkyEye Sleep Scheduler] Decision written to: ${outputPath}`); console.log(`[SkyEye Sleep Scheduler] Decision written to: ${outputPath}`);
// 也输出到 stdout 方便 workflow 捕获 // 输出关键结果到 stdout 方便 workflow 日志检索
console.log('::set-output name=sleep_minutes::' + (result.decision.total_minutes || 0)); console.log(`[RESULT] sleep_minutes=${result.decision.total_minutes || 0}`);
console.log('::set-output name=sleep_decision::' + JSON.stringify(result.decision)); console.log(`[RESULT] sleep_decision=${JSON.stringify(result.decision)}`);
return result; return result;
} }