Repository navigation
50 lines (47 loc) · 1.65 KB
/
Copy pathannounce-release.yml
File metadata and controls
50 lines (47 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Announce Release
on:
workflow_dispatch:
inputs:
version:
description: Release version (i.e. 4.20.1, 4.32.1.RELEASE, 4.22.1.M3)
required: true
type: string
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Spring Tools Team GChat Notification
run: |
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
--header 'Content-Type: application/json' \
--data-raw "{
"cardsV2": [
{
\"card\": {
\"header\": {
\"title\": \"Published STS ${{ inputs.version }}\",
\"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\",
\"imageType\": \"CIRCLE\",
\"imageAltText\": \"Avatar for STS\"
},
\"sections\": [
{
\"collapsible\": false,
\"widgets\": [
{
\"textParagraph\": {
\"text\": \"Successfully published <b>STS ${{ inputs.version }}</b> release\"
}
}
]
}
]
}
}
]
}"
- name: Announce Release on `Spring-Releases` space
uses: spring-io/spring-release-actions/announce-on-gchat@3f7412aeec60ad13127b2a536a1b19a2803a5b81 # 0.0.8
with:
version: ${{ inputs.version }}
gchat-webhook-url: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}