From d564295323cb72c17344b3c87210e267b676f626 Mon Sep 17 00:00:00 2001 From: wechuli Date: Tue, 30 Jan 2024 19:11:39 +0000 Subject: [PATCH] Action build at commit facf8c48fb63bf8f8b51d0975506e5cb649b8fb7 --- dist/checks/checks.js | 9 +++++++-- dist/checks/checks.js.map | 2 +- dist/index.js | 9 +++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/dist/checks/checks.js b/dist/checks/checks.js index 68eed9d..0425c2e 100644 --- a/dist/checks/checks.js +++ b/dist/checks/checks.js @@ -158,7 +158,6 @@ class Checks { await (0, timeFuncs_1.sleep)(this.pollingInterval * 1000 * 60); } // create table with results of filtered checks - console.log("filteredChecksExcludingOwnCheck", filteredChecksExcludingOwnCheck); let checkSummaryHeader = [{ data: 'name', header: true }, { data: 'status', header: true }, { data: 'conclusion', header: true @@ -169,11 +168,17 @@ class Checks { let checkSummary = filteredChecksExcludingOwnCheck.map(check => { return [check.name, check.status, check.conclusion ? check.conclusion : " ", check.started_at, check.completed_at ? check.completed_at : " ", check.app.name, check.app.id.toString()]; }); - console.log("checkSummary", checkSummary); await core.summary.addHeading("Checks Summary").addTable([ checkSummaryHeader, ...checkSummary ]).write(); + // fail the step if the checks did not pass + if (!allChecksPass) { + core.setFailed("Some checks have failed or timed out, please check the workflow run summary to get the details"); + } + if (missingChecks.length > 0) { + core.warning("Some checks were not found, please check the workflow run summary to get the details"); + } } } exports.default = Checks; diff --git a/dist/checks/checks.js.map b/dist/checks/checks.js.map index 09b605a..46af24e 100644 --- a/dist/checks/checks.js.map +++ b/dist/checks/checks.js.map @@ -1 +1 @@ -{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../src/checks/checks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,2CAAyC;AAEzC,mDAMyB;AACzB,kDAAyC;AACzC,0DAAuE;AACvE,uDAAmF;AAQnF,MAAqB,MAAM;IACvB,OAAO;IACA,SAAS,GAAa,EAA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EAAC,EAAE;gBACzE,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,IAAI;aACf,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC;QAEnC,IAAI,YAAY,GAAU,+BAA+B,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YAClE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;QAC1L,CAAC,CAAC,CAAC;QAGH,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC;YAErD,kBAAkB;YAClB,GAAG,YAAY;SAElB,CAAC,CAAC,KAAK,EAAE,CAAC;QAEX,2CAA2C;QAC3C,IAAI,CAAC,aAAa,EAAE,CAAC;YACjB,IAAI,CAAC,SAAS,CAAC,gGAAgG,CAAC,CAAC;QACrH,CAAC;QAED,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,sFAAsF,CAAC,CAAC;QACzG,CAAC;IAEL,CAAC;CAGJ;AA/LD,yBA+LC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 1698c5b..fee1bcd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29181,7 +29181,6 @@ class Checks { await (0, timeFuncs_1.sleep)(this.pollingInterval * 1000 * 60); } // create table with results of filtered checks - console.log("filteredChecksExcludingOwnCheck", filteredChecksExcludingOwnCheck); let checkSummaryHeader = [{ data: 'name', header: true }, { data: 'status', header: true }, { data: 'conclusion', header: true @@ -29192,11 +29191,17 @@ class Checks { let checkSummary = filteredChecksExcludingOwnCheck.map(check => { return [check.name, check.status, check.conclusion ? check.conclusion : " ", check.started_at, check.completed_at ? check.completed_at : " ", check.app.name, check.app.id.toString()]; }); - console.log("checkSummary", checkSummary); await core.summary.addHeading("Checks Summary").addTable([ checkSummaryHeader, ...checkSummary ]).write(); + // fail the step if the checks did not pass + if (!allChecksPass) { + core.setFailed("Some checks have failed or timed out, please check the workflow run summary to get the details"); + } + if (missingChecks.length > 0) { + core.warning("Some checks were not found, please check the workflow run summary to get the details"); + } } } exports["default"] = Checks;