Merge pull request #22 from pullfrog/issue-14-summary-table-local-cli
feat(CLI): Using `table()` in `summaryTable()` when not running in CI
This commit is contained in:
@@ -91332,7 +91332,8 @@ async function summaryTable(rows, options) {
|
|||||||
core.info(`
|
core.info(`
|
||||||
${title}`);
|
${title}`);
|
||||||
}
|
}
|
||||||
const tableText = formattedRows.map((row) => row.map((cell) => cell.data).join(" | ")).join("\n");
|
const tableData = formattedRows.map((row) => row.map((cell) => cell.data));
|
||||||
|
const tableText = isGitHubActions ? tableData.map((row) => row.join(" | ")).join("\n") : (0, import_table.table)(tableData);
|
||||||
core.info(`
|
core.info(`
|
||||||
${tableText}
|
${tableText}
|
||||||
`);
|
`);
|
||||||
|
|||||||
+4
-1
@@ -178,7 +178,10 @@ async function summaryTable(
|
|||||||
if (title) {
|
if (title) {
|
||||||
core.info(`\n${title}`);
|
core.info(`\n${title}`);
|
||||||
}
|
}
|
||||||
const tableText = formattedRows.map((row) => row.map((cell) => cell.data).join(" | ")).join("\n");
|
const tableData = formattedRows.map((row) => row.map((cell) => cell.data));
|
||||||
|
const tableText = isGitHubActions
|
||||||
|
? tableData.map((row) => row.join(" | ")).join("\n")
|
||||||
|
: table(tableData);
|
||||||
core.info(`\n${tableText}\n`);
|
core.info(`\n${tableText}\n`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user