From 07523f8524237b79ba524ab56e633d94e5a47d58 Mon Sep 17 00:00:00 2001 From: Chris Hocking Date: Wed, 14 Jun 2023 11:01:15 +1000 Subject: [PATCH] Attempting to fix path --- .github/scripts/generate-rss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/generate-rss.js b/.github/scripts/generate-rss.js index e2fcdf0..ca7b9a2 100644 --- a/.github/scripts/generate-rss.js +++ b/.github/scripts/generate-rss.js @@ -48,7 +48,7 @@ const feed = new RSS({ pubDate: oldFeedItems.length > 0 ? oldFeedItems[0].date : new Date(), }); -const newsDir = path.join(__dirname, 'docs/_includes/news'); +const newsDir = path.join(process.env.GITHUB_WORKSPACE, 'docs/_includes/news'); // Find all markdown files in newsDir const files = fs.readdirSync(newsDir).filter(fn => fn.endsWith('.md'));