forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (100 loc) · 4.04 KB
/
slack-office-hours-design.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Slack Office Hours Reminder - Design
on:
workflow_dispatch:
schedule:
# Run every Monday at 09:00AM CT, 02:00PM UTC
- cron: '0 14 * * MON'
jobs:
post-reminder:
name: Post design reminder to carbon-design-system and carbon-announcements
runs-on: ubuntu-latest
steps:
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
with:
payload: |
{
"username": "Carbon Design System",
"icon_url": "https://user-images.githubusercontent.com/3360588/192045905-5d9705af-92e2-4432-805e-15db98571e8b.png",
"channel": "#carbon-design-system",
"text": "Join us for Carbon Design Office Hours!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "Join us for Carbon Design Office Hours!",
"emoji": true
}
},
{
"type": "divider"
},
{
"type": "image",
"image_url":
"https://user-images.githubusercontent.com/77697351/207710625-c246e20f-90af-43e4-84a7-c35f75005503.jpg",
"alt_text": "Carbon Design Office Hours image"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":sparkles: _Need visual or UX feedback on your design layouts from a Carbon perspective?_ \n\n :jigsaw: _Want advice on how to use Carbon components or patterns?_ \n\n :rocket: _Have questions about migrating from Carbon v10 to v11?_"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Carbon Design Office Hours* is a weekly opportunity to discuss topics like these and to get help from the Carbon design team. Before sharing during office hours, we recommend sending your design files to us before the meeting, providing actual content in UI examples, and having design iterations or research on hand to help us give you actionable and constructive feedback."
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":yourlearning: *Subscribe and add to your calendar*"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Subscribe",
"emoji": true
},
"value": "click_me_123",
"url": "https://ec.yourlearning.ibm.com/w3/event/10463103",
"action_id": "button-action"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":memo: *Sign up to share and get help at a future session*"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "View the agenda",
"emoji": true
},
"value": "click_me_123",
"url": "https://ibm.biz/carbon-design-office-hours",
"action_id": "button-action"
}
},
{
"type": "divider"
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK