Skip to content

Commit

Permalink
[GHA] Correct gchat notification message content
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Dec 4, 2024
1 parent dfefb7d commit 380dcbb
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,6 @@ jobs:
gcloud auth activate-service-account --key-file=./gcp.json
rm -f gcp.json
gcloud storage cp $VSIX_FILE $GCP_BUCKET/$URL_PATH/$VSIX_FILE
- id: tools-team-slack
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
with:
channel-id: "C0188MENU2J"
payload: |
{
"text": "Published release `$VSIX_FILE`",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"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 }}' \
Expand All @@ -87,14 +68,14 @@ jobs:
{
\"keyValue\": {
\"topLabel\": \"VSCode Marketplace\",
\"content\": \"<a href=\"https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}\">${VSIX_FILE}</a>\",
\"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>\",
\"content\": \"<a href=https://open-vsx.org/extension/VMware/${{ inputs.extension-name }}>${VSIX_FILE}</a>\",
\"contentMultiline\": true
}
}
Expand Down

0 comments on commit 380dcbb

Please sign in to comment.