diff --git a/action.js b/action.js index 934d9d5..7417ee5 100644 --- a/action.js +++ b/action.js @@ -58,6 +58,17 @@ const action = async () => { if (skipPublishing) { core.info('Not publishing test result due to skip_publishing=true'); + for (const annotation of annotations) { + const properties = { + title: annotation.title, + file: annotation.path, + startLine: annotation.start_line, + endLine: annotation.end_line, + startColumn: annotation.start_column, + endColumn: annotation.end_column + }; + core.error(annotation.message, properties); + } return; } diff --git a/dist/index.js b/dist/index.js index 07a7d97..ff26033 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9996,6 +9996,17 @@ const action = async () => { if (skipPublishing) { core.info('Not publishing test result due to skip_publishing=true'); + for (const annotation of annotations) { + const properties = { + title: annotation.title, + file: annotation.path, + startLine: annotation.start_line, + endLine: annotation.end_line, + startColumn: annotation.start_column, + endColumn: annotation.end_column + }; + core.error(annotation.message, properties); + } return; }