Skip to content
name: Notify Slack on New Release
on:
release:
types: [published]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send notification to Slack
env:
SLACK_WEBHOOK_URL: ${{ secrets.CIDGOH_SLACK_WEBHOOK }}
run: |
curl -X POST -H 'Content-type: application/json' --data \
'{"text":"A new release has been published: <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> by *${{ github.event.release.author.login }}*.\n\n*Release Notes:* \n${{ github.event.release.body }}"}' \
$SLACK_WEBHOOK_URL