mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-14 20:13:23 +00:00
* feat: add option to remove PR and commit links * feat(github-action): rename input from remove_pr_commit_links to remove_github_reference_links for clarity and expand functionality to include issue links fix(github-action): update removeGithubReferenceLinks function to remove all GitHub PR, commit, and issue links from the text, including markdown links resolves #41
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Github Releases To Discord
|
|
author: SethCohen
|
|
description: Automatically send a stylized Discord webhook of a GitHub Release description to a specified Discord channel.
|
|
inputs:
|
|
webhook_url:
|
|
description: Discord's webhook url. Use GH repo secrets.
|
|
required: true
|
|
color:
|
|
description: Decimal color value for embed.
|
|
required: false
|
|
default: '2105893'
|
|
username:
|
|
description: String username for webhook.
|
|
required: false
|
|
avatar_url:
|
|
description: String url to webhook avatar picture.
|
|
required: false
|
|
content:
|
|
description: String content for webhook.
|
|
required: false
|
|
footer_title:
|
|
description: Title for the footer.
|
|
required: false
|
|
footer_icon_url:
|
|
description: Icon url for the footer.
|
|
required: false
|
|
footer_timestamp:
|
|
description: Timestamp for the footer.
|
|
required: false
|
|
max_description:
|
|
description: Max length for the description.
|
|
required: false
|
|
default: '4096'
|
|
remove_github_reference_links:
|
|
description: Remove any PR, commit, and issue links from the description.
|
|
required: false
|
|
default: 'false'
|
|
reduce_headings:
|
|
description: Converts H3 to bold, h2 to bold & underline.
|
|
required: false
|
|
default: 'false'
|
|
runs:
|
|
using: 'node16'
|
|
main: 'index.js'
|
|
branding:
|
|
icon: file-text
|
|
color: blue |