-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.json
36 lines (36 loc) · 1.08 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"channel": "${{ env.SLACK_CHANNEL }}",
"username": "${{ env.SLACK_USERNAME }}",
"icon_url": "${{ env.SLACK_ICON }}",
"footer": "Portainer",
"footer_icon": "${{ env.SLACK_ICON }}",
"text": "${{ env.SLACK_STATUS_ICON }} <${{ github.payload.repository.html_url }}/actions/runs/${{ github.runId }}|Workflow> Notification",
"attachments": [
{
"color": "${{ env.SLACK_COLOR }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Environment Details*"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": " *- Owner:* <https://github.com/${{ github.actor }}|${{ github.actor }}> \n *- IP Addresses:* `${{ env.portainer_url }}` \n *- Orchestration:* `${{ env.orchestration }}` \n *- Destroy Id:* `${{ env.destroy_id }}`"
}
}
]
},
{
"footer": "Portainer",
"footer_icon": "${{ env.SLACK_ICON }}"
}
]
}