From d4aae01761e7786b4043b6e3cf992b476a22aa1d Mon Sep 17 00:00:00 2001 From: aboyko Date: Wed, 1 Nov 2023 09:45:21 -0400 Subject: [PATCH] GHA: split publish release into publish and announce --- .github/workflows/announce-release.yml | 55 +++++++++++++++++++ .github/workflows/publish-eclipse-release.yml | 52 +++--------------- 2 files changed, 62 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/announce-release.yml diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml new file mode 100644 index 000000000..5ce23498f --- /dev/null +++ b/.github/workflows/announce-release.yml @@ -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 + diff --git a/.github/workflows/publish-eclipse-release.yml b/.github/workflows/publish-eclipse-release.yml index b110d7426..5223913cc 100644 --- a/.github/workflows/publish-eclipse-release.yml +++ b/.github/workflows/publish-eclipse-release.yml @@ -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