Try GChat notification for VSCode RCs

This commit is contained in:
aboyko
2024-09-04 14:19:52 -04:00
parent 62048c6414
commit 0a7c661f9e
2 changed files with 78 additions and 38 deletions

View File

@@ -59,24 +59,23 @@ jobs:
aws s3 cp ./vsix/$vsix_file s3://$AWS_S3_BUCKET/$s3_path/$vsix_file --no-progress
echo "version=$base_version" >> $GITHUB_OUTPUT
echo "s3_url=${DOWNLOAD_URL_ROOT}/$s3_path/$vsix_file" >> $GITHUB_OUTPUT
- id: tools-team-slack
if: ${{ inputs.dist == 'release' }}
uses: slackapi/slack-github-action@v1.26
env:
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
with:
channel-id: "C0188MENU2J"
payload: |
{
"text": "Release build `${{ inputs.extension-name }}-${{ steps.upload-release.outputs.version }}`",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Release build for `${{ inputs.extension-name }}-${{ steps.upload-release.outputs.version }}` is available: ${{ steps.upload-release.outputs.s3_url }}"
}
}
]
}
# - id: tools-team-slack
# if: ${{ inputs.dist == 'release' }}
# uses: slackapi/slack-github-action@v1.26
# env:
# SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
# with:
# channel-id: "C0188MENU2J"
# payload: |
# {
# "text": "Release build `${{ inputs.extension-name }}-${{ steps.upload-release.outputs.version }}`",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "Release build for `${{ inputs.extension-name }}-${{ steps.upload-release.outputs.version }}` is available: ${{ steps.upload-release.outputs.s3_url }}"
# }
# }
# ]
# }