Error: Cannot read property 'head' of undefined
Opened this issue · 1 comments
davejlin commented
Hello,
I get the following jest-lcov-reporter error in GitHub Actions:
Run vebr/jest-lcov-reporter@v0.2.0
TypeError: Cannot read property 'head' of undefined
at main$1 (/Users/runner/work/_actions/vebr/jest-lcov-reporter/v0.2.0/dist/main.js:22940:41)
Error: Cannot read property 'head' of undefined
The error did not occur on the branch PR job, but it did occur consistently on the PR merge job to develop.
maslade commented
For anyone bumping into this... I encountered this because I was using this action on a non-PR action, which it does not support. Version 2.0.0 crashed if you tried this. Version 2.0.1 handles it gracefully with a no-op and a message: "Not a pull request, skipping...".
So I believe the bug is fixed in 2.0.1, but the real issue is using this action in a non-PR workflow.