Closed kfiven closed 2 years ago
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 github.rest
- https://github.com/actions/github-script#breaking-changes-in-v5
This should be github.rest.actions.listWorkflowRunArtifacts
rather than github.actions.listWorkflowRunArtifacts
Thanks Josh! I somehow missed readme and was looking for breaking changes in releases.
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.
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