.github/workflows/notify-release.yml
name: notify-release
on:
release:
types: [published]
jobs:
notify-discord:
runs-on: ubuntu-22.04
steps:
- name: Notify Discord
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.OKP4_DISCORD_WEBHOOK }}
method: 'POST'
customHeaders: '{"Content-Type": "application/json"}'
data: |-
{
"avatar_url":"https://avatars.githubusercontent.com/u/98603954?v=4",
"username":"Bot Anik",
"content":"šØ A new version of @${{github.repository}} ${{ github.event.release.tag_name }} has been released! š\n\nš Changelog: https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}\nš Documentation: https://ui.okp4.space/?path=/story/welcome--page\nš Official repo: https://github.com/${{ github.repository }}\nš NPM link: https://www.npmjs.com/package/@${{ github.repository }}"
}