File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 83
83
working-directory : ./scripts
84
84
85
85
- name : Create PR
86
- uses : actions/github-script@v4 .0.2
86
+ uses : actions/github-script@v6 .0.0
87
87
with :
88
88
github-token : ${{secrets.YOSHI_CODE_BOT_TOKEN}}
89
89
script : |
92
92
const branch = 'update-discovery-artifacts-${{ steps.date.outputs.current_date }}'
93
93
let prBody = `${{ steps.pr_body.outputs.change_summary }}`
94
94
const prTitle = 'chore: Update discovery artifacts'
95
- const pullRequests = await github.pulls.list({
95
+ const pullRequests = await github.rest. pulls.list({
96
96
owner: owner,
97
97
repo: repo,
98
98
head: `${owner}:${branch}`,
@@ -101,7 +101,7 @@ jobs:
101
101
102
102
if (pullRequests.data.length === 1) {
103
103
prNumber = pullRequests.data[0].number
104
- await github.pulls.update({
104
+ await github.rest. pulls.update({
105
105
owner: owner,
106
106
repo: repo,
107
107
pull_number: prNumber,
@@ -110,7 +110,7 @@ jobs:
110
110
})
111
111
console.log('Updated PR')
112
112
} else {
113
- const createPrResult = await github.pulls.create({
113
+ const createPrResult = await github.rest. pulls.create({
114
114
owner: owner,
115
115
repo: repo,
116
116
base: 'main',
You can’t perform that action at this time.
0 commit comments