Skip to content

Commit d4aae01

Browse files
committed
GHA: split publish release into publish and announce
1 parent abba7b1 commit d4aae01

File tree

2 files changed

+62
-45
lines changed

2 files changed

+62
-45
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Announce Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Release version (i.e. 4.20.1)
8+
required: true
9+
type: string
10+
11+
jobs:
12+
13+
notify:
14+
runs-on: ubuntu-latest
15+
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+
}
32+
}
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+

.github/workflows/publish-eclipse-release.yml

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
required: true
1313
type: string
1414
release_version:
15-
description: Version suffix in S3 (i.e. 4.20.1)
15+
description: Release version (i.e. 4.20.1)
1616
required: true
1717
type: string
1818
eclipse_latest:
@@ -41,47 +41,9 @@ jobs:
4141
version: ${{ inputs.release_version }}.RELEASE
4242
secrets: inherit
4343

44-
notify:
45-
needs: [ aggregate-ls-extension-update-site, aggregate-distro-update-site, create-github-release ]
46-
runs-on: ubuntu-latest
47-
steps:
48-
- id: tools-team-slack
49-
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
50-
env:
51-
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
52-
with:
53-
channel-id: "C0188MENU2J"
54-
payload: |
55-
{
56-
"text": "Released `${{ inputs.release_version }}`",
57-
"blocks": [
58-
{
59-
"type": "section",
60-
"text": {
61-
"type": "mrkdwn",
62-
"text": "Published `${{ inputs.release_version }}` successfully"
63-
}
64-
}
65-
]
66-
}
67-
- name: Announce Release on Slack
68-
id: spring-tools-announcing
69-
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
70-
with:
71-
payload: |
72-
{
73-
"text": "spring-tools-4-announcing `${{ inputs.release_version }}`",
74-
"blocks": [
75-
{
76-
"type": "section",
77-
"text": {
78-
"type": "mrkdwn",
79-
"text": "spring-tools-4-announcing `${{ inputs.release_version }}`"
80-
}
81-
}
82-
]
83-
}
84-
env:
85-
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
86-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
87-
44+
# announce-release:
45+
# needs: [ aggregate-ls-extension-update-site, aggregate-distro-update-site, create-github-release ]
46+
# uses: ./.github/workflows/announce-release.yml
47+
# with:
48+
# version: ${{ inputs.release_version }}
49+
# secrets: inherit

0 commit comments

Comments
 (0)