-
Notifications
You must be signed in to change notification settings - Fork 31
52 lines (48 loc) · 1.5 KB
/
11-slack-message-blocks.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: test-11-slack-message-blocks
on: [push, issues]
jobs:
slack-action:
#if: ${{ false }}
runs-on: ubuntu-20.04
name: Test 11 [ubuntu-20.04]
steps:
- name: Send Slack Message (Blocks)
uses: archive/github-actions-slack@master
id: send-message
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C046J5U2RGC
slack-optional-blocks: >-
[
{
"block_id": "text1",
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Building repo *product-service*"
}
},
{
"type": "divider"
},
{
"block_id": "text2",
"type": "context",
"elements": [
{
"type": "image",
"image_url": "https://upload.wikimedia.org/wikipedia/en/thumb/4/4c/Flag_of_Sweden.svg/1200px-Flag_of_Sweden.svg.png",
"alt_text": "images"
},
{
"type": "plain_text",
"text": "Estimated time: 1 min"
}
]
},
{
"type": "divider"
}
]
- name: Result from "Send Slack Message"
run: echo '${{ steps.send-message.outputs.slack-result }}'