From 0a3681d498c4f964abc0e4e0dc68db7e44acb2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E5=9B=BD=E5=AE=87?= <841185308@qq.com> Date: Wed, 19 Jul 2023 00:24:19 +0800 Subject: [PATCH] chore(CI): Use pr branch for checkout. (#2774) --- .github/workflows/package_for_test.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/package_for_test.yml b/.github/workflows/package_for_test.yml index e8e7677cca..150df84948 100644 --- a/.github/workflows/package_for_test.yml +++ b/.github/workflows/package_for_test.yml @@ -53,19 +53,11 @@ jobs: uses: actions/checkout@v3 if: ${{ github.event_name == 'push' }} - - name: Get PR Branch - if: github.event_name == 'issue_comment' - id: comment-branch - uses: yanguoyu/pull-request-comment-branch@v2.1.0-beta - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - - name: Checkout for PR uses: actions/checkout@v3 if: ${{ github.event_name == 'issue_comment' }} with: - repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }} - ref: ${{ steps.comment-branch.outputs.head_ref }} + ref: refs/pull/${{ github.event.issue.number }}/merge - name: Setup Node uses: actions/setup-node@v3