Skip to content

Commit

Permalink
Create release-announcement.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch authored Nov 1, 2023
1 parent 081c10c commit e93b460
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/release-announcement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Announce SDK Release on Slack

on:
release:
types: [published]

jobs:
update-changelog:
runs-on: ubuntu-latest

steps:
- name: Announce New Release in Slack
uses: slackapi/[email protected]
with:
channel-id: "C063MQJMKJN" #sdk-releases
payload: |
{
"text": "New Release: Branch Unity SDK v${{ github.event.release.tag_name }}",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":rocket: New Release: Branch Unity SDK v${{ github.event.release.tag_name }}",
"emoji": true
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":star: *What's New*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
},
{
"type": "divider"
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": ":git: GitHub Release",
"emoji": true
},
"value": "github",
"action_id": "github",
"url": "${{ github.event.release.html_url }}"
}
]
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_SDK_BOT_TOKEN }}

0 comments on commit e93b460

Please sign in to comment.