Compare commits

..
5 Commits
Author SHA1 Message Date
SethCohen d019e5acd9 Merge pull request #17 from SethCohen/release-please--branches--master--components--release-please-action
chore(master): release 1.12.1
2022-08-24 01:50:47 -04:00
SethCohen 9e0e0c94da chore(master): release 1.12.1 2022-08-24 01:50:33 -04:00
SethCohen 6aea64bf70 chore: release 1.12.1
Release-As: 1.12.1
2022-08-24 01:50:08 -04:00
SethCohen 234bc3b25f chore: updated workflow actions 2022-08-24 01:46:57 -04:00
SethCohen 6df64644c1 chore: updated README.md 2022-08-24 01:46:50 -04:00
6 changed files with 45 additions and 26 deletions
@@ -0,0 +1,15 @@
on:
release:
types: [published]
name: github-release-to-discord
jobs:
github-release-to-discord:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Github Releases To Discord
uses: SethCohen/github-release-to-discord@v1.12.0
id: release
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
-18
View File
@@ -1,18 +0,0 @@
on:
release:
types: [published]
name: github-release-to-discord
jobs:
github-release-to-discord:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Handle Release
uses: ./ # Uses an action in the root directory
id: release
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
color: "2105893"
username: "Release Changelog"
avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"
+7
View File
@@ -1,5 +1,12 @@
# Changelog # Changelog
## [1.12.1](https://github.com/SethCohen/github-release-to-discord/compare/v1.12.0...v1.12.1) (2022-08-24)
### Miscellaneous Chores
* release 1.12.1 ([6aea64b](https://github.com/SethCohen/github-release-to-discord/commit/6aea64bf70aca011417fed5000ff080269024a93))
## [1.12.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.11.1...v1.12.0) (2022-08-24) ## [1.12.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.11.1...v1.12.0) (2022-08-24)
+20 -5
View File
@@ -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!
![](https://support.discord.com/hc/article_attachments/1500000463501/Screen_Shot_2020-12-15_at_4.41.53_PM.png)
![](https://support.discord.com/hc/article_attachments/360101553853/Screen_Shot_2020-12-15_at_4.51.38_PM.png)
3. Copy the webhook url
4. Create a new Github repository secret called WEBHOOK_URL and paste the webhook url into it.
![](https://i.imgur.com/hAaNOds.png)
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
![output](https://i.imgur.com/Zf3TXtb.png) ![output](https://i.imgur.com/Zf3TXtb.png)
## 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"
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "github-release-to-discord", "name": "github-release-to-discord",
"version": "1.12.0", "version": "1.12.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "github-release-to-discord", "name": "github-release-to-discord",
"version": "1.12.0", "version": "1.12.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@actions/core": "^1.9.1", "@actions/core": "^1.9.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "github-release-to-discord", "name": "github-release-to-discord",
"version": "1.12.0", "version": "1.12.1",
"description": "Github Action that parses a release and sends it to a Discord channel", "description": "Github Action that parses a release and sends it to a Discord channel",
"type": "module", "type": "module",
"main": "index.js", "main": "index.js",