forked from LBRYCommunity/lbry-sdk
22 lines
640 B
YAML
22 lines
640 B
YAML
name: slack
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
release:
|
|
name: "slack notification"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: LoveToKnow/slackify-markdown-action@v1.0.0
|
|
id: markdown
|
|
with:
|
|
text: "There is a new SDK release: ${{github.event.release.html_url}}\n${{ github.event.release.body }}"
|
|
- uses: slackapi/slack-github-action@v1.14.0
|
|
env:
|
|
CHANGELOG: '<!channel> ${{ steps.markdown.outputs.text }}'
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_BOT_WEBHOOK }}
|
|
with:
|
|
payload: '{"type": "mrkdwn", "text": ${{ toJSON(env.CHANGELOG) }}'
|
|
|