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