Skip to content

Commit

Permalink
ci: update scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 14, 2024
1 parent b1386e5 commit 64efc25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/create-rss.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ const jsonFeedPath = './docs/rss/feed.json';
rssItem.summary = (data[0] ?? "").substring(0, 200);
rssItem.url = data[1];
rssItem.content_html = markdown(data[0] ?? "");
// 输出 rssItem 日志
info(`RSS Item: ${JSON.stringify(rssItem)}`);

// 如果存在则替换,不存在则添加
index > -1 ? rss.splice(index, 1, rssItem) : rss.push(rssItem);
Expand Down

0 comments on commit 64efc25

Please sign in to comment.