lbry-sdk/.github/workflows/release.yml

23 lines
642 B
YAML
Raw Normal View History

name: slack
2021-07-23 15:23:38 -04:00
on:
release:
types: [published]
jobs:
release:
name: "slack notification"
runs-on: ubuntu-latest
steps:
2021-07-23 15:23:38 -04:00
- 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 }}"
2021-07-23 15:23:38 -04:00
- uses: slackapi/slack-github-action@v1.14.0
env:
CHANGELOG: '<!channel> ${{ steps.markdown.outputs.text }}'
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_BOT_WEBHOOK }}
2021-07-23 15:23:38 -04:00
with:
2021-08-17 14:48:08 -04:00
payload: '{"type": "mrkdwn", "text": ${{ toJSON(env.CHANGELOG) }} }'