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 properties of undefined (reading '_links') #218

Open
allenyummy opened this issue Apr 23, 2023 · 7 comments
Open

Error: Cannot read properties of undefined (reading '_links') #218

allenyummy opened this issue Apr 23, 2023 · 7 comments
Labels
status: pinned Should not be labeled as stale type: question Further information is requested

Comments

@allenyummy
Copy link

allenyummy commented Apr 23, 2023

Hello,

I used version_check in my GitHub action workflow, and encountered the problem below.
Does anyone face the same problem ?

image

I found the source code _links here
https://github.com/EndBug/version-check/blob/main/src/main.ts#L124

@allenyummy allenyummy added the type: question Further information is requested label Apr 23, 2023
@EndBug
Copy link
Owner

EndBug commented Apr 23, 2023

Hmm, that's weird, with what event are you using the actions?

@lkreimann
Copy link

I have this too :/

Using actions/checkout@v3 in my workflow right before using this action and the event is workflow_dispatch for testing purposes

@EndBug EndBug added the status: pinned Should not be labeled as stale label May 12, 2023
@EndBug
Copy link
Owner

EndBug commented May 12, 2023

Oh, ok, then I get what's the issue: here I'm checking for the commit list to create get the diff, and I can't get it from the event unless it's a PR or push event.
The solution would be using the static-checking input when running on workflow dispatch.

Anyway, there should be a user-friendly error telling you this, so I'm going to keep this issue open until I add it (it might take a while tho, PR appreciated ✨)

Thanks for reporting the issue!

@ljukas
Copy link

ljukas commented Oct 30, 2023

Im getting this error too when using workflow_call to trigger my action

@EndBug
Copy link
Owner

EndBug commented Oct 30, 2023

Hey @ljukas, as mentioned above,

The solution would be using the static-checking input when running on workflow dispatch.

If you're having issues while doing that, feel free to let me know, maybe in a new issue so that we don't ping previous participants ;)

@lizozom
Copy link

lizozom commented Feb 29, 2024

@EndBug I'm seeing the same error when running the workflow locally using act.
Any tips?

@EndBug
Copy link
Owner

EndBug commented Mar 1, 2024

Hey @lizozom, have you tried the solution described above?
Using act may affect the action's behavior, as it's heavily based on the event that triggers the (normal) action run

jmeridth added a commit to procore-oss/js-sdk that referenced this issue Mar 5, 2024
Existing bug [here](EndBug/version-check#218)

Fix is to add the `with: static-checking: localIsNew`, mentioned
in issue by author

Signed-off-by: jmeridth <[email protected]>
confused-Techie added a commit to confused-Techie/student-point-tracker that referenced this issue Apr 5, 2024
This solution is recommended here: EndBug/version-check#218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pinned Should not be labeled as stale type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants