Skip to content

Commit

Permalink
chore: ..
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Jan 9, 2024
1 parent 8d4c1d0 commit 453c149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function getGhaEventData (eventFilePath, isGha) {
return
}

debug('Retreiving GitHub Actions data from %s', eventFilePath)
const data = JSON.parse(fs.readFileSync(eventFilePath))

return {
headRef: data.pull_request.head.ref,
headSha: data.pull_request.head.sha,
Expand All @@ -75,7 +77,7 @@ function getGhaEventData (eventFilePath, isGha) {
senderHtmlUrl: data.sender.html_url
}
} catch (e) {
console.debug('[GHA Data Error]: ', e)
debug('Retreiving GitHub Actions data error: %s', e)
}
}

Expand Down

0 comments on commit 453c149

Please sign in to comment.