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

[BUG] Documentation Publish is broken #62

Closed
rexut opened this issue Oct 13, 2022 · 2 comments
Closed

[BUG] Documentation Publish is broken #62

rexut opened this issue Oct 13, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rexut
Copy link
Member

rexut commented Oct 13, 2022

Describe the bug
Since bump to actions/github-script@v6 in Documentation Publish we can't publish the documentation anymore.

To Reproduce
see: https://github.com/tiacsys/bridle/actions/runs/3244220989/jobs/5320091332

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)
Error: Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts')

Expected behavior
Build artefact doc.zip from Documentation Build have to pick up, extract and upload to WEB server.

Impact
Can' deliver release or latest documentation. Can't remove old documentation on WEB server.

Logs and console output
non

Screenshots
non

Development Environment (please complete the following information):

  • GitHub action runner (workflow)

Additional context
non

@rexut rexut added the bug Something isn't working label Oct 13, 2022
@rexut rexut self-assigned this Oct 13, 2022
@rexut rexut modified the milestones: v3.2.0, v3.1.0 Oct 13, 2022
@rexut
Copy link
Member Author

rexut commented Oct 14, 2022

seems to be similar to actions/github-script#242

rexut added a commit that referenced this issue Oct 14, 2022
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]>
rexut added a commit that referenced this issue Oct 14, 2022
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]>
@rexut
Copy link
Member Author

rexut commented Oct 14, 2022

merged with #63

@rexut rexut closed this as completed Oct 14, 2022
rexut added a commit that referenced this issue Feb 19, 2023
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]>
rexut added a commit that referenced this issue Feb 20, 2023
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]>
rexut added a commit that referenced this issue Feb 20, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant