Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot read property 'head' of undefined #15

Open
davejlin opened this issue Mar 10, 2021 · 1 comment
Open

Error: Cannot read property 'head' of undefined #15

davejlin opened this issue Mar 10, 2021 · 1 comment

Comments

@davejlin
Copy link

davejlin commented Mar 10, 2021

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
Copy link

maslade commented Dec 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants