mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-14 20:13:23 +00:00
Add custom url (#44)
* add custom_html_url parameter * Update action.yml * Update README.md * Update test.yml * fix: fixed embedMsg url property --------- Co-authored-by: SethCohen <47002293+SethCohen@users.noreply.github.com>
This commit is contained in:
co-authored by
SethCohen
parent
74ded4247d
commit
9fe781fdc7
@@ -185,6 +185,9 @@ const buildEmbedMessage = (name, html_url, description) => {
|
||||
footer: {}
|
||||
};
|
||||
|
||||
if (core.getInput('custom_html_url')) {
|
||||
embedMsg.url = core.getInput('custom_html_url');
|
||||
}
|
||||
if (core.getInput('footer_title')) {
|
||||
embedMsg.footer.text = limitString(core.getInput('footer_title'), 2048);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user