We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 672296c commit f8667a7Copy full SHA for f8667a7
.github/workflows/gchat-notification.yml
@@ -16,6 +16,10 @@ on:
16
secrets:
17
webhook-url:
18
required: true
19
+ emoji:
20
+ type: string
21
+ required: false
22
+ default: '⚠️'
23
# Remove all permissions by default
24
permissions: {}
25
jobs:
@@ -29,10 +33,11 @@ jobs:
29
33
GH_WORKFLOW: ${{ inputs.workflow }}
30
34
GH_REPOSITORY: ${{ inputs.repository != '' && inputs.repository || github.repository }}
31
35
WEBHOOK_URL: ${{ secrets.webhook-url }}
36
+ EMOJI: ${{ inputs.emoji }}
32
37
run: |
38
tmp_file=$(mktemp)
39
cat >"${tmp_file}"<<EOF
- ⚠️ [${GH_REPOSITORY}] Failure detected on '${GH_WORKFLOW}' workflow ⚠️
40
+ ${EMOJI} [${GH_REPOSITORY}] Failure detected on '${GH_WORKFLOW}' workflow ⚠️
41
📑 See details <${JOB_URL}|here>.
42
EOF
43
0 commit comments