Files
medusa-store/.github/workflows/release-notifications.yml
2023-03-30 17:18:31 +02:00

36 lines
972 B
YAML

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