mirror of
https://github.com/Mozilla-Actions/sccache-action.git
synced 2026-04-08 17:42:13 +08:00
add disable_annotations options to disable stats report (#162)
This commit is contained in:
@@ -29,6 +29,12 @@ async function get_output(command: string, args: string[]): Promise<string> {
|
||||
}
|
||||
|
||||
async function show_stats() {
|
||||
const disable_annotations = core.getBooleanInput('disable_annotations');
|
||||
if (disable_annotations) {
|
||||
core.debug('annotations generation disabled');
|
||||
return;
|
||||
}
|
||||
|
||||
core.debug('start sccache show starts');
|
||||
const human_stats = await core.group('Get human-readable stats', async () => {
|
||||
return get_output(`${process.env.SCCACHE_PATH}`, ['--show-stats']);
|
||||
|
||||
Reference in New Issue
Block a user