Skip to content

Commit 4ccb20e

Browse files
committed
GChat notifications for release build and publish of a vscode extension
1 parent 1464569 commit 4ccb20e

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

.github/workflows/publish-vscode-extension.yml

+26-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,33 @@ jobs:
6161
"type": "section",
6262
"text": {
6363
"type": "mrkdwn",
64-
"text": "Release is now available on VSCode Marketplace: <https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
64+
"text": "Published release `$VSIX_FILE`<https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
6565
}
6666
}
6767
]
6868
}
69+
- name: GChat spring-tools-team notification
70+
run: |
71+
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
72+
--header 'Content-Type: application/json' \
73+
--data-raw '{
74+
"cards": [
75+
{
76+
"header": {
77+
"title": "Published release `$VSIX_FILE`",
78+
"imageUrl": "https://code.visualstudio.com/assets/images/code-stable.png",
79+
},
80+
"sections": [
81+
{
82+
"widgets": [
83+
{
84+
"textParagraph": {
85+
"text": "Published release `$VSIX_FILE`<https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
86+
}
87+
}
88+
]
89+
}
90+
]
91+
}
92+
]
93+
}'

.github/workflows/release-vscode-extension.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ jobs:
115115
},
116116
{
117117
"buttons": [
118-
{
119-
"text": "Download VSIX",
120-
"onClick": {
121-
"openLink": {
122-
"url": "${{ steps.upload-release.outputs.s3_url }}"
118+
textButton: {
119+
"text": "Download VSIX",
120+
"onClick": {
121+
"openLink": {
122+
"url": "${{ steps.upload-release.outputs.s3_url }}"
123+
}
123124
}
124125
}
125-
}
126126
]
127127
}
128128
]

0 commit comments

Comments
 (0)