Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Discord Release Notification | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| notify-discord: | |
| name: Notify Discord Channel | |
| runs-on: ubuntu-latest | |
| if: github.event.release.prerelease == false | |
| steps: | |
| - name: Send Discord Message | |
| env: | |
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| run: | | |
| curl -H "Content-Type: application/json" \ | |
| -X POST \ | |
| -d '{ | |
| "username": "GitHub Releases", | |
| "avatar_url": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png", | |
| "content": "🚀 **A new termimage release has been published!**\n\n**Release:** ${{ github.event.release.name }}\n\nCheck it out here: ${{ github.event.release.html_url }}" | |
| }' \ | |
| $DISCORD_WEBHOOK_URL |