From 307878b60c8fa839b46d0511f0656b9d8435f6f5 Mon Sep 17 00:00:00 2001 From: David Seveloff Date: Thu, 27 Jul 2023 18:53:05 +0300 Subject: [PATCH] Publish the Slack message to release channel [ED-11261] --- .../workflows/one-click-hosting-release.yml | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.github/workflows/one-click-hosting-release.yml b/.github/workflows/one-click-hosting-release.yml index 692b2ef7503..7974b8acd7c 100644 --- a/.github/workflows/one-click-hosting-release.yml +++ b/.github/workflows/one-click-hosting-release.yml @@ -97,4 +97,47 @@ jobs: with: SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }} SLACK_TAG_CHANNELS: ${{ secrets.SLACK_CHANNEL_RELEASE }} - PAYLOAD: ${{ env.PAYLOAD }} + PAYLOAD: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Hi All :smile:\n\nWe just Published Could release of *Elementor*\n`${{ env.PACKAGE_VERSION }}`" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Release *${{ env.PACKAGE_VERSION }}* \nCreated by ${{ github.actor }}" + }, + "accessory": { + "type": "button", + "text": { + "type": "plain_text", + "text": "Open :point_left:", + "emoji": true + }, + "value": "open-release", + "url": "https://github.com/${{ github.repository }}/releases/tag/v${{ env.PACKAGE_VERSION }}", + "action_id": "button-action" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*v${{ env.PACKAGE_VERSION }} Changelog* \n\n ${{ env.CHANGELOG_CONTENT }}" + } + } + ] + } +