Skip to content

Commit 0f7ebf9

Browse files
committed
[GHA] Fix vscode extension publish notification
1 parent a82190b commit 0f7ebf9

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

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

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,33 @@ jobs:
7070
run: |
7171
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
7272
--header 'Content-Type: application/json' \
73-
--data-raw '{
74-
"cards": [
73+
--data-raw "{
74+
\"cards\": [
7575
{
76-
"header": {
77-
"title": "Published release `$VSIX_FILE`",
78-
"imageUrl": "https://code.visualstudio.com/assets/images/code-stable.png",
76+
\"header\": {
77+
\"title\": \"Published `${VSIX_FILE}`\",
78+
\"imageUrl\": \"https://code.visualstudio.com/assets/images/code-stable.png\",
7979
},
80-
"sections": [
80+
\"sections\": [
8181
{
82-
"widgets": [
82+
\"widgets\": [
8383
{
84-
"textParagraph": {
85-
"text": "Published release `$VSIX_FILE`<https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
84+
\"keyValue\": {
85+
\"topLabel\": \"VSCode Marketplace\",
86+
\"content\": \"<a href=\"https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}\">${VSIX_FILE}</a>\",
87+
\"contentMultiline\": true
88+
}
89+
},
90+
{
91+
\"keyValue\": {
92+
\"topLabel\": \"Open VSX Registry\",
93+
\"content\": \"<a href=\"https://open-vsx.org/extension/VMware/${{ inputs.extension-name }}\">${VSIX_FILE}</a>\",
94+
\"contentMultiline\": true
8695
}
8796
}
8897
]
8998
}
9099
]
91100
}
92101
]
93-
}'
102+
}"

0 commit comments

Comments
 (0)