Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alicey0719/gha2discord

GitHubAction notifies Discrod
https://github.com/alicey0719/gha2discord

discord docker dockerhub github github-actions notification python webhook

Last synced: about 1 month ago
JSON representation

GitHubAction notifies Discrod

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"
```