diff --git a/.github/workflows/nightly_pr_comment.yml b/.github/workflows/nightly_pr_comment.yml index 38850df06c..d92dee5c88 100644 --- a/.github/workflows/nightly_pr_comment.yml +++ b/.github/workflows/nightly_pr_comment.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: ${{ fromJSON(vars.JOB_TIMEOUT) }} steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | const {owner, repo} = context.repo; @@ -19,7 +19,7 @@ jobs: const pull_head_sha = '${{github.event.workflow_run.head_sha}}'; const issue_number = await (async () => { - const pulls = await github.rest.pulls.list({owner, repo}); + const pulls = await github.rest.pulls.list.endpoint.merge({owner, repo}); for await (const {data} of github.paginate.iterator(pulls)) { for (const pull of data) { if (pull.head.sha === pull_head_sha) { @@ -68,4 +68,4 @@ jobs: } else { core.info(`Creating a comment`); await github.rest.issues.createComment({repo, owner, issue_number, body}); - } \ No newline at end of file + } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2bebc77fc..75e72e06e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: shell: bash - name: Create tag - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.git.createRef({