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 'id' of undefined #9

Open
xiao-k233 opened this issue Mar 14, 2022 · 2 comments
Open

Error: Cannot read property 'id' of undefined #9

xiao-k233 opened this issue Mar 14, 2022 · 2 comments

Comments

@xiao-k233
Copy link

I find this in marketspace. I use it .but it doesn't work
Run Shopify/upload-to-release@v1.0.1 [11](https://github.com/xiao-k233/MagiskOnWSA/runs/5533906132?check_suite_focus=true#step:18:11) [@octokit/rest] const Octokit = require("@octokit/rest")is deprecated. Useconst { Octokit } = require("@octokit/rest") instead [12](https://github.com/xiao-k233/MagiskOnWSA/runs/5533906132?check_suite_focus=true#step:18:12) Error: Cannot read property 'id' of undefined

@lavoiesl
Copy link
Collaborator

It looks like GITHUB_EVENT_PATH is empty: https://github.com/Shopify/upload-to-release/blob/master/lib/main.js#L7

I'm guessing that it's because your run is on a workflow_dispatch, this has only been tested if the event is published, created, or prereleased.

Feel free to submitted a PR for your use case 🙂

@Dragon1573
Copy link

This issue is occured when triggered the workflow by on.push.tags event.

[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
Error: Cannot read properties of undefined (reading 'id')

I'm using this action for automatically create a GitHub Release after I pushed a tag and build artifacts by previous workflow steps. Can this action achieve it?

Thank you ❤️

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

3 participants