File tree 1 file changed +67
-0
lines changed
1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test Slack Message
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ slack-message :
8
+ name : Send GChat message
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Google Chat Notification
12
+ run : |
13
+ curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
14
+ --header 'Content-Type: application/json' \
15
+ --data-raw '{
16
+ "cards": [
17
+ {
18
+ "header": {
19
+ "title": "Test Release Message",
20
+ "subtitle": "Version: #${{ inputs.version }}"
21
+ },
22
+ "sections": [
23
+ {
24
+ "widgets": [
25
+ {
26
+ "keyValue": {
27
+ "topLabel": "Creator",
28
+ "content": "Alex Boyko"
29
+ },
30
+ },
31
+ {
32
+ "keyValue": {
33
+ "topLabel": "Title",
34
+ "content": "All the best and cool features"
35
+ }
36
+ },
37
+ {
38
+ "buttons": [
39
+ {
40
+ "textButton": {
41
+ "text": "Button 1",
42
+ "onClick": {
43
+ "openLink": {
44
+ "url": "https://github.com/spring-projects/sts4"
45
+ }
46
+ }
47
+ }
48
+ },
49
+ {
50
+ "textButton": {
51
+ "text": "Button 2",
52
+ "onClick": {
53
+ "openLink": {
54
+ "url": "https://github.com/spring-projects/sts4"
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }'
You can’t perform that action at this time.
0 commit comments