Skip to content

Commit

Permalink
[GHA] Fix vscode extension publish notification
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Sep 10, 2024
1 parent a82190b commit 0f7ebf9
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,33 @@ jobs:
run: |
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
--data-raw "{
\"cards\": [
{
"header": {
"title": "Published release `$VSIX_FILE`",
"imageUrl": "https://code.visualstudio.com/assets/images/code-stable.png",
\"header\": {
\"title\": \"Published `${VSIX_FILE}`\",
\"imageUrl\": \"https://code.visualstudio.com/assets/images/code-stable.png\",
},
"sections": [
\"sections\": [
{
"widgets": [
\"widgets\": [
{
"textParagraph": {
"text": "Published release `$VSIX_FILE`<https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
\"keyValue\": {
\"topLabel\": \"VSCode Marketplace\",
\"content\": \"<a href=\"https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}\">${VSIX_FILE}</a>\",
\"contentMultiline\": true
}
},
{
\"keyValue\": {
\"topLabel\": \"Open VSX Registry\",
\"content\": \"<a href=\"https://open-vsx.org/extension/VMware/${{ inputs.extension-name }}\">${VSIX_FILE}</a>\",
\"contentMultiline\": true
}
}
]
}
]
}
]
}'
}"

0 comments on commit 0f7ebf9

Please sign in to comment.