Skip to content

Commit 13660e5

Browse files
chore(deps): update actions/github-script action to v6 (#1693)
* chore(deps): update actions/github-script action to v6 * chore: make script compatible with actions/[email protected] Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 53846cb commit 13660e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
working-directory: ./scripts
8484

8585
- name: Create PR
86-
uses: actions/github-script@v4.0.2
86+
uses: actions/github-script@v6.0.0
8787
with:
8888
github-token: ${{secrets.YOSHI_CODE_BOT_TOKEN}}
8989
script: |
@@ -92,7 +92,7 @@ jobs:
9292
const branch = 'update-discovery-artifacts-${{ steps.date.outputs.current_date }}'
9393
let prBody = `${{ steps.pr_body.outputs.change_summary }}`
9494
const prTitle = 'chore: Update discovery artifacts'
95-
const pullRequests = await github.pulls.list({
95+
const pullRequests = await github.rest.pulls.list({
9696
owner: owner,
9797
repo: repo,
9898
head: `${owner}:${branch}`,
@@ -101,7 +101,7 @@ jobs:
101101
102102
if (pullRequests.data.length === 1) {
103103
prNumber = pullRequests.data[0].number
104-
await github.pulls.update({
104+
await github.rest.pulls.update({
105105
owner: owner,
106106
repo: repo,
107107
pull_number: prNumber,
@@ -110,7 +110,7 @@ jobs:
110110
})
111111
console.log('Updated PR')
112112
} else {
113-
const createPrResult = await github.pulls.create({
113+
const createPrResult = await github.rest.pulls.create({
114114
owner: owner,
115115
repo: repo,
116116
base: 'main',

0 commit comments

Comments
 (0)