Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/WalshyDev/Discord-Status-Webhook


https://github.com/WalshyDev/Discord-Status-Webhook

Last synced: about 1 month ago
JSON representation

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).