GHA: split publish release into publish and announce
This commit is contained in:
55
.github/workflows/announce-release.yml
vendored
Normal file
55
.github/workflows/announce-release.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
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
|
||||
|
||||
52
.github/workflows/publish-eclipse-release.yml
vendored
52
.github/workflows/publish-eclipse-release.yml
vendored
@@ -12,7 +12,7 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
release_version:
|
||||
description: Version suffix in S3 (i.e. 4.20.1)
|
||||
description: Release version (i.e. 4.20.1)
|
||||
required: true
|
||||
type: string
|
||||
eclipse_latest:
|
||||
@@ -41,47 +41,9 @@ jobs:
|
||||
version: ${{ inputs.release_version }}.RELEASE
|
||||
secrets: inherit
|
||||
|
||||
notify:
|
||||
needs: [ aggregate-ls-extension-update-site, aggregate-distro-update-site, create-github-release ]
|
||||
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.release_version }}`",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "Published `${{ inputs.release_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.release_version }}`",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "spring-tools-4-announcing `${{ inputs.release_version }}`"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
|
||||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
||||
|
||||
# announce-release:
|
||||
# needs: [ aggregate-ls-extension-update-site, aggregate-distro-update-site, create-github-release ]
|
||||
# uses: ./.github/workflows/announce-release.yml
|
||||
# with:
|
||||
# version: ${{ inputs.release_version }}
|
||||
# secrets: inherit
|
||||
|
||||
Reference in New Issue
Block a user