Skip to content

Commit

Permalink
[GHA] Correct gchat notification json
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Sep 7, 2024
1 parent 468eaa9 commit b9fa420
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions .github/workflows/release-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,36 +99,38 @@ jobs:
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
{
"header": {
"title": "${{ inputs.extension-name }} ${{ steps.version.outputs.version }}",
"subtitle": "Release Candidate ${{ inputs.postfix }}",
"imageUrl": "https://code.visualstudio.com/assets/images/code-stable.png",
},
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": "VSCode extension <b>${{ inputs.extension-name }}</b> release candidate build <b>${{ inputs.postfix }}</b> is available: <a href=${{ steps.upload-release.outputs.s3_url }}>${{ steps.version.outputs.release_name }}.vsix</a>"
}
},
{
"buttons": [
"textButton": {
"text": "Download VSIX",
"onClick": {
"openLink": {
"url": "${{ steps.upload-release.outputs.s3_url }}"
}
}
}
]
{
"header": {
"title": "${{ inputs.extension-name }} ${{ steps.version.outputs.version }}",
"subtitle": "Release Candidate ${{ inputs.postfix }}",
"imageUrl": "https://code.visualstudio.com/assets/images/code-stable.png",
},
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": "VSCode extension <b>${{ inputs.extension-name }}</b> release candidate build <b>${{ inputs.postfix }}</b> is available: <a href=${{ steps.upload-release.outputs.s3_url }}>${{ steps.version.outputs.release_name }}.vsix</a>"
}
]
}
]
}
},
{
"buttons": [
{
"textButton": {
"text": "Download VSIX",
"onClick": {
"openLink": {
"url": "${{ steps.upload-release.outputs.s3_url }}"
}
}
}
}
]
}
]
}
]
}
]
}'

0 comments on commit b9fa420

Please sign in to comment.