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