From a1ed1b6a7fc8a1fadf1ca72960e0009f307145ee Mon Sep 17 00:00:00 2001 From: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:01:29 +0200 Subject: [PATCH] chore(workflows): Add release notification (#3629) --- .github/workflows/release-notifications.yml | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release-notifications.yml diff --git a/.github/workflows/release-notifications.yml b/.github/workflows/release-notifications.yml new file mode 100644 index 0000000000..5a6a412dc7 --- /dev/null +++ b/.github/workflows/release-notifications.yml @@ -0,0 +1,36 @@ +name: Send release notifications +on: + release: + types: [published] + +jobs: + send-notification: + runs-on: ubuntu-latest + steps: + - name: Post to Slack channel + id: slack + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: "releases" + payload: | + { + "blocks":[ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "${{ github.event.release.tag_name}} is out!" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "${{ github.event.release.html_url }}" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_RELEASE }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file