summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/check-changed-files.js2
-rw-r--r--.github/workflows/pull_request.yml12
2 files changed, 7 insertions, 7 deletions
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