Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ernanej/action-discord-alerts
Action aimed at facilitating continuous delivery. You only need a Discord webhook to receive notifications for the completion status of your workflow. 🎉
https://github.com/ernanej/action-discord-alerts
actions ci discord webhooks
Last synced: 26 days ago
JSON representation
Action aimed at facilitating continuous delivery. You only need a Discord webhook to receive notifications for the completion status of your workflow. 🎉
- Host: GitHub
- URL: https://github.com/ernanej/action-discord-alerts
- Owner: ErnaneJ
- License: mit
- Created: 2023-05-04T21:51:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-07T20:43:07.000Z (over 1 year ago)
- Last Synced: 2024-10-24T21:59:18.500Z (2 months ago)
- Topics: actions, ci, discord, webhooks
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/action-discord-alerts
- Size: 364 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Action Discord Alerts 📢
Project |
Use |
Arguments |
Test |
Build |
Contribute
## 💻 Project
Action aimed at facilitating continuous delivery. You only need a discord webhook to track the completion status of your workflow.
## 🚀 Use
```yml
# ...
- name: Action Discord Alert
if: always()
uses: ErnaneJ/action-discord-alerts@main
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
```## 📑 Arguments
| Argument | Required | Default | Description |
|-----------------|-----------|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| **webhook** | `true` | - | Discord webhook. |
| **status** | `false` | `${{ job.status }}` | Job status. Should be bound to job.status. Default to success. |
| **content** | `false` | - | Standard message outside the information card. Can be used to mention users. |
| **title** | `false` | - | For custom title only. By default it is filled with action job status. |
| **description** | `false` | - | For custom description only. By default it is filled with author and commit message. |
| **image** | `false` | - | Url of an Image that will be attached to the information card |
| **thumbnail** | `false` | - | Url of an thumbnail that will be attached to the information card |
| **color** | `false` | - | Overwrite the defined color for the info card highlight. By default this color is set by job status. |
| **username** | `false` | - | Overrides Discord webhook username. By default we have Github Action. |
| **avatar_url** | `false` | - | Overrides Discord webhook avatar url. By default we have Github image url. |
| **event_info** | `false` | `true` | Decide whether or not to display drill-downs for some information. By default it is shown. |
| **timestamp** | `false` | `true` | Controls whether to show the timestamp on the info card. Default pos is shown. |
| **verbose** | `false` | `false` | Controls the sampling of some information when the script runs. For example, the payload that is assembled before being sent to discord. |## 💡 Test
The tests use Jest. To run them use:
```bash
npm run test# To hide warnings set the silent environment variable.
export SILENT=true
```## 🔥 Build
```bash
npm run build # use @vercel/ncc
```## 🎉 Contribute
If you would like to implement or improve any feature feel free to submit a pull request. I would love to receive!
Developed with ❤ by Ernane Ferreira. 👋🏻