@@ -13,47 +13,38 @@ jobs:
1313 notify :
1414 runs-on : ubuntu-latest
1515 steps :
16- - id : tools-team-slack
17- uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
18- env :
19- SLACK_BOT_TOKEN : ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
20- with :
21- channel-id : " C0188MENU2J"
22- payload : |
23- {
24- "text": "Released `${{ inputs.version }}`",
25- "blocks": [
26- {
27- "type": "section",
28- "text": {
29- "type": "mrkdwn",
30- "text": "Published `${{ inputs.version }}` successfully"
31- }
16+ - name : Spring Tools Team GChat Notification
17+ run : |
18+ curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
19+ --header 'Content-Type: application/json' \
20+ --data-raw "{
21+ "cardsV2": [
22+ {
23+ \"card\": {
24+ \"header\": {
25+ \"title\": \"Published STS ${{ inputs.version }}\",
26+ \"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\",
27+ \"imageType\": \"CIRCLE\",
28+ \"imageAltText\": \"Avatar for STS\"
29+ },
30+ \"sections\": [
31+ {
32+ \"collapsible\": false,
33+ \"widgets\": [
34+ {
35+ \"textParagraph\": {
36+ \"text\": \"Successfully published <b>STS ${{ inputs.version }}</b> release\"
37+ }
38+ }
39+ ]
40+ }
41+ ]
3242 }
33- ]
34- }
35- - name : Announce Release on Slack
36- id : spring-tools-announcing
37- uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
38- with :
39- payload : |
40- {
41- "text": "spring-tools-4-announcing `${{ inputs.version }}`",
42- "blocks": [
43- {
44- "type": "section",
45- "text": {
46- "type": "mrkdwn",
47- "text": "spring-tools-4-announcing `${{ inputs.version }}`"
48- }
49- }
50- ]
51- }
52- env :
53- SLACK_WEBHOOK_URL : ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
54- SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
55- - name : Announce Release in Chat
56- uses : julb/action-post-googlechat-message@v1
57- with :
58- message : " ${{ github.event.repository.name }}-announcing `${{ inputs.version }}`"
59- gchat_webhook_url : ${{ secrets.SPRING_RELEASE_CHAT_WEBHOOK_URL }}
43+ }
44+ ]
45+ }"
46+ - name : Announce Release on `Spring-Releases` space
47+ run : |
48+ curl --location --request POST '${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}' \
49+ --header 'Content-Type: application/json' \
50+ --data-raw '{ text: "spring-tools-4-announcing `${{ inputs.version }}`"}'
0 commit comments