diff --git a/.github/workflows/gh-hosted-eclipse-distro-build.yml b/.github/workflows/gh-hosted-eclipse-distro-build.yml index f167f25d9..1db114d92 100644 --- a/.github/workflows/gh-hosted-eclipse-distro-build.yml +++ b/.github/workflows/gh-hosted-eclipse-distro-build.yml @@ -342,12 +342,6 @@ jobs: name: Send GChat message runs-on: ubuntu-latest steps: - - name: Setup AWS CLI 2.22 - run: | - curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip" - unzip -q awscliv2.zip - sudo ./aws/install --update - aws --version - name: Google Chat Notification run: | echo "P2 Update Site: ${DOWNLOAD_URL_ROOT}/${{ needs.eclipse-distro-build.outputs.p2_path }}" @@ -364,7 +358,7 @@ jobs: filename=${file:${#s3_url}+1} echo $download_url echo $filename - echo "
  • ${filename}
  • " >> $downloads_html + echo "${filename}" >> $downloads_html fi done distro_links=`cat ./$downloads_html` @@ -378,33 +372,35 @@ jobs: curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \ --header 'Content-Type: application/json' \ --data-raw "{ - \"cards\": [ + \"cardsV2\": [ { - \"header\": { - \"title\": \"STS ${{ needs.eclipse-distro-build.outputs.version }} ${build_type}\", - \"subtitle\": \"Eclipse ${eclipse_version}\", - \"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\", - }, - \"sections\": [ - { - \"widgets\": [ - { - \"keyValue\": { - \"topLabel\": \"P2 Update Site\", - \"content\": \"${DOWNLOAD_URL_ROOT}/${{ needs.eclipse-distro-build.outputs.p2_path }}\", - \"contentMultiline\": true + \"card\": { + \"header\": { + \"title\": \"STS ${{ needs.eclipse-distro-build.outputs.version }} ${build_type}\", + \"subtitle\": \"Eclipse ${eclipse_version}\", + \"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\", + }, + \"sections\": [ + { + \"widgets\": [ + { + \"decoratedText\": { + \"topLabel\": \"P2 Update Site\", + \"text\": \"${DOWNLOAD_URL_ROOT}/${{ needs.eclipse-distro-build.outputs.p2_path }}\", + \"wrapText\": true + } + }, + { + \"decoratedText\": { + \"topLabel\": \"Distributions\", + \"text\": \"${distro_links}\", + \"wrapText\": true + } } - }, - { - \"keyValue\": { - \"topLabel\": \"Distributions\", - \"content\": \"${distro_links}\", - \"contentMultiline\": true - } - } - ] - } - ] + ] + } + ] + } } ] }" diff --git a/.github/workflows/test-eclipse-distro-gchat-notification.yml b/.github/workflows/test-eclipse-distro-gchat-notification.yml index fb0383dad..5e0a1086c 100644 --- a/.github/workflows/test-eclipse-distro-gchat-notification.yml +++ b/.github/workflows/test-eclipse-distro-gchat-notification.yml @@ -58,7 +58,7 @@ jobs: filename=${file:${#s3_url}+1} echo $download_url echo $filename - echo "
  • ${filename}
  • " >> $downloads_html + echo "${filename}" >> $downloads_html fi done distro_links=`cat ./$downloads_html` @@ -100,4 +100,39 @@ jobs: ] } ] + }" + + curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \ + --header 'Content-Type: application/json' \ + --data-raw "{ + \"cardsV2\": [ + { + \"card\": { + \"header\": { + \"title\": \"STS ${{ inputs.version }} ${build_type}\", + \"subtitle\": \"Eclipse ${eclipse_version}\", + \"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\", + }, + \"sections\": [ + { + \"widgets\": [ + { + \"decoratedText\": { + \"topLabel\": \"P2 Update Site\", + \"text\": \"${DOWNLOAD_URL_ROOT}/${{ inputs.p2_path }}\" + } + }, + { + \"decoratedText\": { + \"topLabel\": \"Distributions\", + \"text\": \"${distro_links}\", + \"wrapText\": true + } + } + ] + } + ] + } + } + ] }"