-
Notifications
You must be signed in to change notification settings - Fork 209
55 lines (51 loc) · 1.53 KB
/
announce-release.yml
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
51
52
53
54
name: Announce Release
on:
workflow_dispatch:
inputs:
version:
description: Release version (i.e. 4.20.1)
required: true
type: string
jobs:
notify:
runs-on: ubuntu-latest
steps:
- id: tools-team-slack
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
env:
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
with:
channel-id: "C0188MENU2J"
payload: |
{
"text": "Released `${{ inputs.version }}`",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Published `${{ inputs.version }}` successfully"
}
}
]
}
- name: Announce Release on Slack
id: spring-tools-announcing
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
with:
payload: |
{
"text": "spring-tools-4-announcing `${{ inputs.version }}`",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "spring-tools-4-announcing `${{ inputs.version }}`"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK