From 25ee303aeb54df9a5f28280af4e0553b1a664618 Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Tue, 20 Dec 2022 21:35:11 +0000 Subject: [PATCH] Try raw --- index.js | 14 ++++++-------- src/index.ts | 22 +++++++++++++--------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/index.js b/index.js index 56386ac..d05753b 100644 --- a/index.js +++ b/index.js @@ -22141,14 +22141,12 @@ try { } else if (deployStage?.status === "failure") { status = "\u{1F6AB} Deployment failed"; } - await import_core.summary.addHeading( - "Deploying with Cloudflare Pages" - ).addTable([ - ["**Last commit:**", `\`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\``], - ["**Status:**", ""], - ["**Preview URL**:", deployment.url], - ["**Branch Preview URL**:", aliasUrl] - ]).addLink("Preview URL", deployment.url).write(); + await import_core.summary.addHeading("Deploying with Cloudflare Pages").addRaw(` + | **Last commit:** | \`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\` | + | **Status**: | ${status} | + | **Preview URL**: | ${deployment.url} | + | **Branch Preview URL**: | ${aliasUrl} | + `).addLink("Preview URL", deployment.url).write(); }; (async () => { const project = await getProject(); diff --git a/src/index.ts b/src/index.ts index 1bbb439..87cefbd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,15 +115,19 @@ try { } await summary - .addHeading( - 'Deploying with Cloudflare Pages' - ) - .addTable([ - ['**Last commit:**', `\`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\``], - ['**Status:**', ''], - ['**Preview URL**:', deployment.url], - ['**Branch Preview URL**:', aliasUrl], - ]) + .addHeading('Deploying with Cloudflare Pages') + // .addTable([ + // ['**Last commit:**', `\`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\``], + // ['**Status:**', ''], + // ['**Preview URL**:', deployment.url], + // ['**Branch Preview URL**:', aliasUrl], + // ]) + .addRaw(` + | **Last commit:** | \`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\` | + | **Status**: | ${status} | + | **Preview URL**: | ${deployment.url} | + | **Branch Preview URL**: | ${aliasUrl} | + `) .addLink('Preview URL', deployment.url) .write(); }