mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
Update create_pull_request.yml (#9406)
This commit is contained in:
10
.github/workflows/create_pull_request.yml
vendored
10
.github/workflows/create_pull_request.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -22,11 +22,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Create pull request for ${{ github.event.client_payload.ReleaseBranchName }}
|
- name: Create pull request for ${{ github.event.client_payload.ReleaseBranchName }}
|
||||||
id: create-pr
|
id: create-pr
|
||||||
uses: actions/github-script@v2
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
let response = await github.pulls.create({
|
let response = await github.rest.pulls.create({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
title: "${{ github.event.client_payload.PullRequestTitle }}",
|
title: "${{ github.event.client_payload.PullRequestTitle }}",
|
||||||
@@ -37,11 +37,11 @@ jobs:
|
|||||||
return response.data.number
|
return response.data.number
|
||||||
|
|
||||||
- name: Request reviewers
|
- name: Request reviewers
|
||||||
uses: actions/github-script@v2
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.PRAPPROVAL_SECRET}}
|
github-token: ${{secrets.PRAPPROVAL_SECRET}}
|
||||||
script: |
|
script: |
|
||||||
github.pulls.requestReviewers({
|
github.rest.pulls.requestReviewers({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
pull_number: ${{ steps.create-pr.outputs.result }},
|
pull_number: ${{ steps.create-pr.outputs.result }},
|
||||||
|
|||||||
Reference in New Issue
Block a user