Skip to content

Commit 333ba95

Browse files
committed
extra formatting and footer
1 parent 10af7d7 commit 333ba95

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

dist/index.js

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/functions/post-deploy.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export async function postDeploy(
5959

6060
// Set the mode and deploy type based on the deployment mode
6161
if (noop === 'true') {
62-
mode = 'noop 🧪'
62+
mode = '`noop` 🧪'
6363
deployTypeString = ' noop '
6464
} else {
65-
mode = 'branch 🚀'
65+
mode = '`branch` 🚀'
6666
}
6767

6868
// Dynamically set the message text depending if the deployment succeeded or failed
@@ -79,6 +79,8 @@ export async function postDeploy(
7979
deployStatus = `\`${status}\` ⚠️`
8080
}
8181

82+
const footer = `Actor: **${context.actor}**, Action: \`${context.eventName}\`, Workflow: \`${context.workflow}\``
83+
8284
// Conditionally format the message body
8385
var message_fmt
8486
if (customMessage && customMessage.length > 0) {
@@ -100,7 +102,7 @@ export async function postDeploy(
100102
101103
${message}
102104
103-
> Actor: ${context.actor}, Action: \`${context.eventName}\`, Workflow: \`${context.workflow}\`
105+
> ${footer}
104106
`)
105107
} else {
106108
message_fmt = dedent(`
@@ -112,7 +114,7 @@ export async function postDeploy(
112114
113115
${message}
114116
115-
> Actor: ${context.actor}, Action: \`${context.eventName}\`, Workflow: \`${context.workflow}\`
117+
> ${footer}
116118
`)
117119
}
118120

0 commit comments

Comments
 (0)