diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 42730936..0c73b94a 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -26,7 +26,7 @@ jobs: uses: actions/github-script@v6 with: script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }}, @@ -47,7 +47,7 @@ jobs: if: (matrix.rust-toolchain == 'nightly') with: script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }},