name: slack on: release: types: [published] jobs: release: name: "slack notification" runs-on: ubuntu-20.04 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: ' ${{ steps.markdown.outputs.text }}' SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_BOT_WEBHOOK }} with: payload: '{"type": "mrkdwn", "text": ${{ toJSON(env.CHANGELOG) }} }'