Try raw take 2

pull/44/head
Daniel Walsh 2 years ago
parent 25ee303aeb
commit 4e7aef988e
No known key found for this signature in database

@ -22141,12 +22141,14 @@ try {
} else if (deployStage?.status === "failure") {
status = "\u{1F6AB} Deployment failed";
}
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();
await import_core.summary.addRaw(`
# Deploying with Cloudflare Pages
| **Last commit:** | \`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\` |
| **Status**: | ${status} |
| **Preview URL**: | ${deployment.url} |
| **Branch Preview URL**: | ${aliasUrl} |
`).write();
};
(async () => {
const project = await getProject();

@ -115,7 +115,7 @@ try {
}
await summary
.addHeading('Deploying with Cloudflare Pages')
// .addHeading('Deploying with Cloudflare Pages')
// .addTable([
// ['**Last commit:**', `\`${deployment.deployment_trigger.metadata.commit_hash.substring(0, 8)}\``],
// ['**Status:**', ''],
@ -123,12 +123,14 @@ try {
// ['**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} |
# Deploying with Cloudflare Pages
| **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)
// .addLink('Preview URL', deployment.url)
.write();
}

Loading…
Cancel
Save