-
Notifications
You must be signed in to change notification settings - Fork 432
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
Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') #242
Comments
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
}); In V5 of this action, we upgraded Octokit and REST methods now need to be referenced by This should be |
Thanks Josh! I somehow missed readme and was looking for breaking changes in releases. |
Oops, sorry about that. I should have included that in the release notes, I've updated https://github.com/actions/github-script/releases/tag/v5.0.0 to include this breaking change. |
…cript. actions/github-script was recently updated from 3.1.0 to 6.3.1 (69de14c), but unfortunately there were breaking changes: * https://github.com/actions/github-script#breaking-changes * actions/github-script#242 (comment) This would manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') Error: Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13340:16), <anonymous>:3:38) at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13341:12) at main (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13436:26) at Module.858 (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13413:1) at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:24:31) at startup (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:43:19) at /home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:49:18 at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:52:10) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) So update our code to to use the new way to do things.
…cript. (#16240) actions/github-script was recently updated from 3.1.0 to 6.3.1 (69de14c), but unfortunately there were breaking changes: * https://github.com/actions/github-script#breaking-changes * actions/github-script#242 (comment) This would manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') Error: Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13340:16), <anonymous>:3:38) at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13341:12) at main (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13436:26) at Module.858 (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13413:1) at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:24:31) at startup (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:43:19) at /home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:49:18 at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:52:10) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) So update our code to to use the new way to do things.
The actions/github-script was recently updated from v3.1.0 to v6 to catch Node 16 (f49acac), but unfortunately there were breaking changes in the API with v5: * https://github.com/actions/github-script#breaking-changes-in-v5 * actions/github-script#242 (comment) Error was manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13355:16), <anonymous>:3:38) at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13356:12) at main (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13451:26) at Module.858 (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13428:1) at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:24:31) at startup (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:43:19) at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:49:18 at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:52:10) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) So update our code to to use the new way to do things. issues: #62 Signed-off-by: Stephan Linz <[email protected]>
The actions/github-script was recently updated from v3.1.0 to v6 to catch Node 16 (f49acac), but unfortunately there were breaking changes in the API with v5: * https://github.com/actions/github-script#breaking-changes-in-v5 * actions/github-script#242 (comment) Error was manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') So update our code to to use the new way to do things. issues: #62 Signed-off-by: Stephan Linz <[email protected]>
The actions/github-script was recently updated from v3.1.0 to v6 to catch Node 16 (f49acac), but unfortunately there were breaking changes in the API with v5: * https://github.com/actions/github-script#breaking-changes-in-v5 * actions/github-script#242 (comment) Error was manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') So update our code to to use the new way to do things. issues: #62 #64 Signed-off-by: Stephan Linz <[email protected]>
The actions/github-script was recently updated from v3.1.0 to v6 to catch Node 16 (f49acac), but unfortunately there were breaking changes in the API with v5: * https://github.com/actions/github-script#breaking-changes-in-v5 * actions/github-script#242 (comment) Error was manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') So update our code to to use the new way to do things. issues: #62 #64 Signed-off-by: Stephan Linz <[email protected]>
The actions/github-script was recently updated from v3.1.0 to v6 to catch Node 16 (f49acac), but unfortunately there were breaking changes in the API with v5: * https://github.com/actions/github-script#breaking-changes-in-v5 * actions/github-script#242 (comment) Error was manifest as: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts') So update our code to to use the new way to do things. issues: #62 #64 Signed-off-by: Stephan Linz <[email protected]>
Hi, I am using this action to deploy pull requests, see https://github.com/kfiven/cinny/blob/test/.github/workflows/deploy-pull-request.yml
After upgrading to v6 (from v3.1.0) I am getting following error:
See https://github.com/kfiven/cinny/runs/5303357611?check_suite_focus=true#step:2:1
The text was updated successfully, but these errors were encountered: