GChat notifications for release build and publish of a vscode extension

This commit is contained in:
aboyko
2024-09-04 19:08:06 -04:00
parent 1464569ce3
commit 4ccb20e746
2 changed files with 32 additions and 7 deletions

View File

@@ -61,8 +61,33 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Release is now available on VSCode Marketplace: <https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
"text": "Published release `$VSIX_FILE`<https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
}
}
]
}
- name: GChat spring-tools-team notification
run: |
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
{
"header": {
"title": "Published release `$VSIX_FILE`",
"imageUrl": "https://code.visualstudio.com/assets/images/code-stable.png",
},
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": "Published release `$VSIX_FILE`<https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
}
}
]
}
]
}
]
}'

View File

@@ -115,14 +115,14 @@ jobs:
},
{
"buttons": [
{
"text": "Download VSIX",
"onClick": {
"openLink": {
"url": "${{ steps.upload-release.outputs.s3_url }}"
textButton: {
"text": "Download VSIX",
"onClick": {
"openLink": {
"url": "${{ steps.upload-release.outputs.s3_url }}"
}
}
}
}
]
}
]