Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
working-directory: ./scripts

- name: Create PR
uses: actions/github-script@v4.0.2
uses: actions/github-script@v6.0.0
with:
github-token: ${{secrets.YOSHI_CODE_BOT_TOKEN}}
script: |
Expand All @@ -92,7 +92,7 @@ jobs:
const branch = 'update-discovery-artifacts-${{ steps.date.outputs.current_date }}'
let prBody = `${{ steps.pr_body.outputs.change_summary }}`
const prTitle = 'chore: Update discovery artifacts'
const pullRequests = await github.pulls.list({
const pullRequests = await github.rest.pulls.list({
owner: owner,
repo: repo,
head: `${owner}:${branch}`,
Expand All @@ -101,7 +101,7 @@ jobs:

if (pullRequests.data.length === 1) {
prNumber = pullRequests.data[0].number
await github.pulls.update({
await github.rest.pulls.update({
owner: owner,
repo: repo,
pull_number: prNumber,
Expand All @@ -110,7 +110,7 @@ jobs:
})
console.log('Updated PR')
} else {
const createPrResult = await github.pulls.create({
const createPrResult = await github.rest.pulls.create({
owner: owner,
repo: repo,
base: 'main',
Expand Down