diff --git a/.github/workflows/update-pr-artifacts.yml b/.github/workflows/update-pr-artifacts.yml index 310f2f1..db726e3 100644 --- a/.github/workflows/update-pr-artifacts.yml +++ b/.github/workflows/update-pr-artifacts.yml @@ -12,14 +12,14 @@ jobs: steps: - name: Get PR Number id: pr-number - uses: actions/github-script@v7 + uses: actions/github-script@v6 with: result-encoding: string script: | const { owner, repo } = context.repo; const findPRNumber = async () => { - const pulls = await github.rest.pulls.list.endpoint.merge({ owner, repo }); + const pulls = await github.rest.pulls.list({ owner, repo }); for await (const { data } of github.paginate.iterator(pulls)) { for (const pull of data) { if (pull.head.sha === '${{ github.event.workflow_run.head_sha }}' && pull.user.id === '${{ github.event.sender.id }}') { @@ -39,7 +39,7 @@ jobs: } - name: Create Artifacts Content id: artifacts-content - uses: actions/github-script@v7 + uses: actions/github-script@v6 with: result-encoding: string script: |