Cordova 6.1.0 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Cordova SDK ${{ github.event.release.tag_name }}", | |
"blocks": [ | |
{ | |
"type": "header", | |
"text": { | |
"type": "plain_text", | |
"text": ":rocket: New Release: Branch Cordova SDK ${{ 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 }} |