https://github.com/walshydev/discord-status-webhook
https://github.com/walshydev/discord-status-webhook
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/walshydev/discord-status-webhook
- Owner: WalshyDev
- License: mit
- Created: 2019-04-21T10:17:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-21T11:14:19.000Z (over 7 years ago)
- Last Synced: 2025-04-16T00:47:40.151Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action for Discord webhook sending
This GitHub action can be used to send a build status to a Discord webhook
## Usage
Set the environment variable `WEBHOOK_URL` to your Discord webhook.
### Building
```
action "Send Build Status" {
uses = "WalshyDev/Discord-Status-Webhook@master"
args = "building"
secrets = ["WEBHOOK_URL"]
}
```
### Success
Sends an embed with the color code #2ECC71 and with the title "Passed"
```
action "Send Build Status" {
uses = "WalshyDev/Discord-Status-Webhook@master"
args = "success"
secrets = ["WEBHOOK_URL"]
}
```
### Fail
Sends an embed with the color code #E74C3C and with the title "Failed"
```
action "Send Build Status" {
uses = "WalshyDev/Discord-Status-Webhook@master"
args = "failure"
secrets = ["WEBHOOK_URL"]
}
```
### Custom Status
Sends an embed with the color code #00c8ff and with the title "Deployed"
```
action "Send Deployed Status" {
uses = "WalshyDev/Discord-Status-Webhook@master"
args = "custom 51455 Deployed"
secrets = ["WEBHOOK_URL"]
}
```
## License
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE.md).