Use built-in Actions github (#21516)
* Use built-in github * Use built-in github
This commit is contained in:
@@ -47,7 +47,7 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
const { owner, repo } = context.repo
|
||||
const { data: pullRequest } = await octokit.pulls.get({
|
||||
const { data: pullRequest } = await github.pulls.get({
|
||||
owner,
|
||||
repo,
|
||||
pull_number: pullNumber
|
||||
|
||||
2
.github/workflows/staging-deploy-pr.yml
vendored
2
.github/workflows/staging-deploy-pr.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
const { owner, repo } = context.repo
|
||||
const { data: pullRequest } = await octokit.pulls.get({
|
||||
const { data: pullRequest } = await github.pulls.get({
|
||||
owner,
|
||||
repo,
|
||||
pull_number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||
|
||||
Reference in New Issue
Block a user