Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WalshyDev/Discord-Status-Webhook
https://github.com/WalshyDev/Discord-Status-Webhook
Last synced: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-21T11:14:19.000Z (over 5 years ago)
- Last Synced: 2024-10-30T04:28:44.565Z (about 2 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred - WalshyDev/Discord-Status-Webhook - (Shell)
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).