Compare commits

..
5 Commits
5 changed files with 13 additions and 18 deletions
+8
View File
@@ -1,5 +1,13 @@
# Changelog
## [1.4.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.3.0...v1.4.0) (2022-08-24)
### Features
* updated action colour ([ac2e4a3](https://github.com/SethCohen/github-release-to-discord/commit/ac2e4a38e2cad7e65dac53a1b4591fd46d65130d))
* updated description ([4517d8d](https://github.com/SethCohen/github-release-to-discord/commit/4517d8d0ec09c575248503c50ed25f15677f8f3d))
## [1.3.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.2.0...v1.3.0) (2022-08-24)
+1 -1
View File
@@ -7,7 +7,7 @@ inputs:
colour:
description: Decimal colour value for embed.
required: false
default: '202225'
default: '2105893'
username:
description: String username for webhook.
required: false
+1 -14
View File
@@ -27,24 +27,11 @@ async function run () {
const content = await getContext()
let description = '';
for (const line of content.body) {
if (line.startsWith('## ')) {
description += `**${line.slice(3)}**\n`;
}
else if (line.startsWith('### ')) {
description += `**__${line.slice(4)}__**\n`;
}
else if (line.startsWith('* ')) {
description += `- ${line.slice(2)}\n`;
}
}
const embedMsg = {
title: `Release ${content.version}`,
url: content.html_url,
color: colour,
description: description,
description: content.body,
}
const body = { username: username, avatar_url: avatarUrl, embeds: [embedMsg], }
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "github-release-to-discord",
"version": "1.3.0",
"version": "1.4.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "github-release-to-discord",
"version": "1.3.0",
"version": "1.4.0",
"license": "ISC",
"dependencies": {
"@actions/core": "^1.9.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "github-release-to-discord",
"version": "1.3.0",
"version": "1.4.0",
"description": "",
"main": "index.js",
"scripts": {