feat: set pull request

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/657/head
Xinwei Xiong(cubxxw-openim) 2 years ago
parent 95171a185f
commit f73faff3ec
No known key found for this signature in database
GPG Key ID: 1BAD6F395338EFDE

@ -44,9 +44,7 @@ jobs:
run: | run: |
git config user.name 'openimbot' git config user.name 'openimbot'
git config user.email 'openimsdk@qq.com' git config user.email 'openimsdk@qq.com'
git checkout -b cicd/patch-${{ steps.patch.outputs.patch }} git checkout -b cicd/patch-${{ github.event.number }}
git commit -am "docs: modify tracked file during workflow"
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
@ -97,13 +95,12 @@ jobs:
- name: Commit code - name: Commit code
run: | run: |
git add . git add .
git commit -a -s -m "cicd: bump League Patch to cicd/patch-${{ steps.patch.outputs.patch }}"
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v5 uses: peter-evans/create-pull-request@v5
with: with:
commit-message: "cicd: bump League Patch to cicd/patch-${{ steps.patch.outputs.patch }}" commit-message: "cicd: bump League Patch to cicd/patch-${{ github.event.number }}"
title: Bump League Patch to cicd/patch-${{ steps.patch.outputs.patch }} title: Bump League Patch to cicd/patch-${{ github.event.number }}
body: | body: |
Review criteria: Review criteria:
@ -112,6 +109,6 @@ jobs:
This is an automated PR. This is an automated PR.
<sub>[workflow](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/.github/workflows/pull-request.yml).</sub> <sub>[workflow](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/.github/workflows/pull-request.yml).</sub>
base: main base: main
branch: cicd/patch-${{ steps.patch.outputs.patch }} branch: cicd/patch-${{ github.event.number }}
labels: kind/documentation, area/test, ok-to-test labels: kind/documentation, area/test, ok-to-test
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.REDBOT_GITHUB_TOKEN }}
Loading…
Cancel
Save