From 9eec3be3f3210f256adc74331fe1d90aeca386cc Mon Sep 17 00:00:00 2001 From: Avinesh Tripathi <73980067+AvineshTripathi@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:12:17 +0530 Subject: [PATCH] Update processPRs.js --- analyze/processPRs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/analyze/processPRs.js b/analyze/processPRs.js index 3bef5fd..e1d7ff5 100644 --- a/analyze/processPRs.js +++ b/analyze/processPRs.js @@ -11,9 +11,11 @@ async function processPRs() { try { let authorData = {}; + console.log("workspace", process.env.GITHUB_WORKSPACE) const authorJsonPath = path.join(process.env.GITHUB_WORKSPACE, 'author.json'); if (!fs.existsSync(authorJsonPath)) { + console.log("existsSync", fs.existsSync(authorJsonPath)) fs.writeFileSync(authorJsonPath, JSON.stringify(authorData, null, 2)); console.log('author.json created.'); } else { @@ -64,6 +66,9 @@ async function processPRs() { } catch (error) { console.error('Error occurred:', error); } + + const f = fs.readFileSync(authorJsonPath, 'utf8'); + console.log(f) } processPRs();