[[Discord Webhook Notify (GitHub Actions)|Discord Webhook Notify]]を使う。
```yaml:失敗の例
- name: "Discord notification (not success)"
uses: rjstone/discord-webhook-notify@v1
if: "! success()"
with:
description: "⚠ Jumeaux Tests failed!"
footer: "Python v${{ matrix.python }} on ${{ matrix.os }})"
severity: error
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
```
```yaml:成功の例
- name: "Discord notification (success)"
uses: rjstone/discord-webhook-notify@v1
if: always()
with:
description: "✅ Jumeaux Tests passed!"
footer: "Python v3.6/3.7/3.8/3.9"
severity: info
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
```
### リリース用の通知画像
https://assets.wprock.fr/emoji/joypixels/512/1f680.png
### テスト用の通知画像
https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg