diff --git a/.github/workflows/makecomment.yml b/.github/workflows/makecomment.yml index c0fdff8..dc66aab 100644 --- a/.github/workflows/makecomment.yml +++ b/.github/workflows/makecomment.yml @@ -16,7 +16,7 @@ jobs: uses: actions/github-script@v7 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 }}, @@ -24,7 +24,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "diff" })[0]; - var download = await github.actions.downloadArtifact({ + var download = await github.rest.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifact.id, @@ -43,7 +43,7 @@ jobs: var issue_number = Number(fs.readFileSync('./NR')); var diff_text = String(fs.readFileSync('./diff.txt')); - await github.issues.createComment({ + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issue_number,