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 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 : |
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',
You can’t perform that action at this time.
0 commit comments