Skip to content

Commit

Permalink
[FEATURE]: Get cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Aug 31, 2023
1 parent 16b5671 commit abf051c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/webhook-pr-comment.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const fs = require('fs');
const path = require('path');

module.exports = ({ github }) => {
try {
const outputsFile = fs.readFileSync('cdk-infra/outputs.json').toString();
const outputsFile = fs.readFileSync(path.join(process.cwd(), 'cdk-infra/outputs.json')).toString();
const outputs = JSON.parse(outputsFile);
console.log('github', github);
console.log(github.head_ref);
Expand Down

0 comments on commit abf051c

Please sign in to comment.