From c911554c84fe41629e000e27efc960ced80912e2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Dec 2021 13:20:48 +0000 Subject: chore(deps): update actions/github-script action to v5 (#1616) * chore(deps): update actions/github-script action to v5 * github: update check-changed-files for OctoKit upgrade Co-authored-by: Renovate Bot Co-authored-by: Harsh Shandilya --- .github/check-changed-files.js | 2 +- .github/workflows/pull_request.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to '.github') diff --git a/.github/check-changed-files.js b/.github/check-changed-files.js index 10f86348..24bddcf4 100644 --- a/.github/check-changed-files.js +++ b/.github/check-changed-files.js @@ -1,5 +1,5 @@ module.exports = async ({github, context}) => { - const result = await github.pulls.listFiles({ + const result = await github.rest.pulls.listFiles({ owner: context.payload.repository.owner.login, repo: context.payload.repository.name, pull_number: context.payload.number, diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5ab9bfe8..17f570d1 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@v4.0.0 + uses: actions/github-script@v5.0.0 id: service-changed with: result-encoding: string @@ -51,7 +51,7 @@ jobs: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@v4.0.0 + uses: actions/github-script@v5.0.0 id: service-changed with: result-encoding: string @@ -93,7 +93,7 @@ jobs: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@v4.0.0 + uses: actions/github-script@v5.0.0 id: service-changed with: result-encoding: string @@ -128,7 +128,7 @@ jobs: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@v4.0.0 + uses: actions/github-script@v5.0.0 id: service-changed with: result-encoding: string @@ -163,7 +163,7 @@ jobs: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@v4.0.0 + uses: actions/github-script@v5.0.0 id: service-changed with: result-encoding: string @@ -198,7 +198,7 @@ jobs: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@v4.0.0 + uses: actions/github-script@v5.0.0 id: service-changed with: result-encoding: string -- cgit v1.2.3