v1.2.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: Notify Slack Channel | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy-tag: | |
name: Notify Slack | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send message to Slack channel | |
id: slack | |
uses: slackapi/[email protected] | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
PROJECT_NAME: 'iOS CustomerIO SDK' | |
with: | |
channel-id: "${{ secrets.SLACK_RELEASE_CHANNEL_ID }}" | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "header", | |
"text": { | |
"type": "plain_text", | |
"text": "New release: ${{ env.PROJECT_NAME }}" | |
} | |
}, | |
{ | |
"type": "divider" | |
}, | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*Release: <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}>*" | |
} | |
} | |
] | |
} |