From 4ccb20e74613db29103346c89ca57ea2fd3d3941 Mon Sep 17 00:00:00 2001 From: aboyko Date: Wed, 4 Sep 2024 19:08:06 -0400 Subject: [PATCH] GChat notifications for release build and publish of a vscode extension --- .../workflows/publish-vscode-extension.yml | 27 ++++++++++++++++++- .../workflows/release-vscode-extension.yml | 12 ++++----- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-vscode-extension.yml b/.github/workflows/publish-vscode-extension.yml index f4311da18..7c06ce2bf 100644 --- a/.github/workflows/publish-vscode-extension.yml +++ b/.github/workflows/publish-vscode-extension.yml @@ -61,8 +61,33 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Release is now available on VSCode Marketplace: " + "text": "Published release `$VSIX_FILE`" } } ] } + - 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`" + } + } + ] + } + ] + } + ] + }' diff --git a/.github/workflows/release-vscode-extension.yml b/.github/workflows/release-vscode-extension.yml index 11af8fb45..1f45d1844 100644 --- a/.github/workflows/release-vscode-extension.yml +++ b/.github/workflows/release-vscode-extension.yml @@ -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 }}" + } } } - } ] } ]