Skip to content

Commit 1063fec

Browse files
committed
GChat V2 card
1 parent 7d01964 commit 1063fec

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test-eclipse-distro-gchat-notification.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,37 @@ jobs:
101101
]
102102
}
103103
]
104+
}"
105+
106+
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
107+
--header 'Content-Type: application/json' \
108+
--data-raw "{
109+
\"cardsV2\": [
110+
{
111+
\"header\": {
112+
\"title\": \"STS ${{ inputs.version }} ${build_type}\",
113+
\"subtitle\": \"Eclipse ${eclipse_version}\",
114+
\"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\",
115+
},
116+
\"sections\": [
117+
{
118+
\"widgets\": [
119+
{
120+
\"decoratedText\": {
121+
\"topLabel\": \"P2 Update Site\",
122+
\"content\": \"<a href=${DOWNLOAD_URL_ROOT}/${{ inputs.p2_path }}>${DOWNLOAD_URL_ROOT}/${{ inputs.p2_path }}</a>\"
123+
}
124+
},
125+
{
126+
\"decoratedText\": {
127+
\"topLabel\": \"Distributions\",
128+
\"content\": \"${distro_links}\",
129+
\"contentMultiline\": true
130+
}
131+
}
132+
]
133+
}
134+
]
135+
}
136+
]
104137
}"

0 commit comments

Comments
 (0)