https://github.com/alicey0719/gha2discord
GitHubAction notifies Discrod
https://github.com/alicey0719/gha2discord
discord docker dockerhub github github-actions notification python webhook
Last synced: 4 months ago
JSON representation
GitHubAction notifies Discrod
- Host: GitHub
- URL: https://github.com/alicey0719/gha2discord
- Owner: Alicey0719
- License: gpl-3.0
- Created: 2023-10-06T12:59:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-18T03:06:41.000Z (4 months ago)
- Last Synced: 2026-02-18T07:55:53.418Z (4 months ago)
- Topics: discord, docker, dockerhub, github, github-actions, notification, python, webhook
- Language: Python
- Homepage: https://hub.docker.com/r/alicey/gha2discord
- Size: 57.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gha2discord
## Env
```
WEBHOOK_URL="https://discord.com/api/webhooks/[hogehoge]/[hiyohiyo]"
MESSAGE_USERNAME="GitHub Actions"
MESSAGE_AVATAR_URL="https://nyaaaaan.alicey.dev/sugoi_icon.jpg"
MESSAGE_AUTHORNAME="Docker Push"
MESSAGE_AUTHORICON_URL="https://nyaaaaan.alicey.dev/kawaii_icon.jpg"
MESSAGE_COMMENT="なんかpushされたよ\ntagid"
```
## Usage
- GitHubActions yaml (step)
```githubaction.yaml
-
name: discord notification
uses: docker://alicey/gha2discord:latest
env:
WEBHOOK_URL: ${{ secrets.DC_WEBHOOK_URL }}
MESSAGE_USERNAME: "GitHub Actions"
MESSAGE_AVATAR_URL: ""
MESSAGE_AUTHORNAME: "Docker Push"
MESSAGE_AUTHORICON_URL: ""
MESSAGE_COMMENT: "comment\n${{ secrets.DOCKERHUB_USERNAME }}/app-name:${{ env.BUILD_TAG }}"
with:
entrypoint: "python3"
args: "/opt/app/app.py"
```