-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
31 lines (31 loc) · 1.29 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: "Gitcord Release Changelogger"
description: "Pipe changelog information from a GitHub release to Discord."
author: "Tyler J. Russell (Kludge Cyber Systems)"
inputs:
avatar-url:
description: "Avatar URL to use for the Discord message sent to the webhook."
default: "https://github.com/kludge-cs/gitcord-release-changelogger/raw/main/GitHub-Mark-120px-plus.png"
required: false
release-body:
description: "Markdown body of the GitHub release."
required: true
release-name:
description: "Name to use when sending the release to Discord."
required: true
username:
description: "Username to use for the Discord message sent to the webhook."
default: "GitHub Release"
required: false
webhook-url:
description: "URL for the Discord webhook. Should be passed via secrets. If this isn't set, the action will do nothing with the payload output so you can use it yourself."
required: false
outputs:
fields:
description: "Array of parsed embed fields, extracted from the rest of the payload."
payload:
description: "JSON payload to be sent to the webhook, returned in case you wish to parse it further for other platforms."
api-result:
description: "JSON response body from Discord (IF `webhook-url` is set)."
runs:
using: node12
main: dist/index.js