Add job id to annotation title

This commit is contained in:
Wren Etheredge
2025-10-23 10:57:48 +02:00
committed by Sylvestre Ledru
parent f136be3826
commit afdb6b9946
+3 -1
View File
@@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
import * as core from '@actions/core'; import * as core from '@actions/core';
import {context} from '@actions/github';
import * as exec from '@actions/exec'; import * as exec from '@actions/exec';
import {SummaryTableRow} from '@actions/core/lib/summary'; import {SummaryTableRow} from '@actions/core/lib/summary';
@@ -50,8 +51,9 @@ async function show_stats() {
const formatted_stats = format_json_stats(stats); const formatted_stats = format_json_stats(stats);
core.notice(formatted_stats.notice, { core.notice(formatted_stats.notice, {
title: 'sccache stats' title: `sccache stats - ${context.job}`
}); });
core.info('\nFull human-readable stats:'); core.info('\nFull human-readable stats:');
core.info(human_stats); core.info(human_stats);