Skip to content

Commit

Permalink
Update processPRs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AvineshTripathi authored Nov 15, 2023
1 parent 1e2aead commit 9eec3be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions analyze/processPRs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -64,6 +66,9 @@ async function processPRs() {
} catch (error) {
console.error('Error occurred:', error);
}

const f = fs.readFileSync(authorJsonPath, 'utf8');
console.log(f)
}

processPRs();

0 comments on commit 9eec3be

Please sign in to comment.