mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-14 20:13:23 +00:00
chore: updated README.md
This commit is contained in:
@@ -1,7 +1,23 @@
|
|||||||
# GitHub Release To Discord Action
|
# GitHub Release To Discord Action
|
||||||
|
A GitHub action that parses a GitHub release and posts it to a Discord channel as a stylized Discord webhook.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Setup Instructions
|
||||||
|
1. Open your **Server Settings** and head into the **Integrations** tab:
|
||||||
|
2. Click the "**Create Webhook**" button to create a new webhook!
|
||||||
|

|
||||||
|

|
||||||
|
3. Copy the webhook url
|
||||||
|
4. Create a new Github repository secret called WEBHOOK_URL and paste the webhook url into it.
|
||||||
|

|
||||||
|
5. Save the secret.
|
||||||
|
6. Add the secret to your action configuration.
|
||||||
|
|
||||||
|
And you're done!
|
||||||
|
|
||||||
This action parses a GitHub release and posts it to a Discord channel via a Discord webhook.
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
| Variable | Required | Default | Description |
|
| Variable | Required | Default | Description |
|
||||||
|------------|----------|----------------------------------------------------------------------------------------------------------------|--------------------------------------------|
|
|------------|----------|----------------------------------------------------------------------------------------------------------------|--------------------------------------------|
|
||||||
| webhook_url | ✔ | | Discord's webhook url. Use GH repo secrets. |
|
| webhook_url | ✔ | | Discord's webhook url. Use GH repo secrets. |
|
||||||
@@ -13,7 +29,7 @@ This action parses a GitHub release and posts it to a Discord channel via a Disc
|
|||||||
## Output
|
## Output
|
||||||

|

|
||||||
|
|
||||||
## Example usage
|
## Example Usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
@@ -26,9 +42,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Handle Release
|
- name: Github Releases To Discord
|
||||||
uses: ./ # Uses an action in the root directory
|
uses: SethCohen/github-release-to-discord@v1.12.0
|
||||||
id: release
|
|
||||||
with:
|
with:
|
||||||
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
||||||
color: "2105893"
|
color: "2105893"
|
||||||
|
|||||||
Reference in New Issue
Block a user