Skip to content

Commit 91d8ba1

Browse files
committed
[TNZ-80357] Allow a custom emoji for Gchat notifications
Allow custom emoji for Gchat notifications ai-assisted=no Signed-off-by: David Gomez <david.gomez@broadcom.com>
1 parent 672296c commit 91d8ba1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/gchat-notification.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
secrets:
1717
webhook-url:
1818
required: true
19+
emoji:
20+
type: string
21+
required: false
22+
default: '⚠️'
1923
# Remove all permissions by default
2024
permissions: {}
2125
jobs:
@@ -29,10 +33,11 @@ jobs:
2933
GH_WORKFLOW: ${{ inputs.workflow }}
3034
GH_REPOSITORY: ${{ inputs.repository != '' && inputs.repository || github.repository }}
3135
WEBHOOK_URL: ${{ secrets.webhook-url }}
36+
EMOJI: ${{ inputs.emoji }}
3237
run: |
3338
tmp_file=$(mktemp)
3439
cat >"${tmp_file}"<<EOF
35-
⚠️ [${GH_REPOSITORY}] Failure detected on '${GH_WORKFLOW}' workflow ⚠️
40+
${EMOJI} [${GH_REPOSITORY}] Failure detected on '${GH_WORKFLOW}' workflow ⚠️
3641
📑 See details <${JOB_URL}|here>.
3742
EOF
3843

0 commit comments

Comments
 (0)