From 7a8cb070f0c546ec4eb1b73876578d27981db78a Mon Sep 17 00:00:00 2001 From: gkr-bot Date: Sun, 24 Jul 2022 17:36:23 +0000 Subject: [PATCH] [skip-ci] Published 1.7.7 --- dist/blog-post-workflow.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/blog-post-workflow.js b/dist/blog-post-workflow.js index e3c00d7..6fb1a0e 100644 --- a/dist/blog-post-workflow.js +++ b/dist/blog-post-workflow.js @@ -9354,11 +9354,11 @@ feedList.forEach((siteUrl) => { } } if (post && core.getInput("remove_duplicates") === "true") { - if (appendedPostTitles.indexOf(post.title) !== -1 || appendedPostDesc.indexOf(post.description) !== -1) { + if (appendedPostTitles.indexOf(post.title.trim()) !== -1 || appendedPostDesc.indexOf(post.description.trim()) !== -1) { post = null; } else { - post.title && appendedPostTitles.push(post.title); - post.description && appendedPostDesc.push(post.description); + post.title && appendedPostTitles.push(post.title.trim()); + post.description && appendedPostDesc.push(post.description.trim()); } } const disableHtmlEncoding = core.getInput("disable_html_encoding") !== "false"; diff --git a/package.json b/package.json index 55a25e4..f3fee3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blog-post-workflow", - "version": "1.7.6", + "version": "1.7.7", "description": "Allows you to show your latest blog posts on your github profile or project readme", "main": "blog-post-workflow.js", "scripts": {