From 0201762d091d7ff3943c888b5a35e3dfdd483d80 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 5 Jul 2023 12:10:53 +0800 Subject: [PATCH] Update develop_ci.yml --- .github/workflows/develop_ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/develop_ci.yml b/.github/workflows/develop_ci.yml index 6f013f03..0909d4cd 100644 --- a/.github/workflows/develop_ci.yml +++ b/.github/workflows/develop_ci.yml @@ -13,15 +13,15 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Get source branch name - id: source_branch - run: echo "::set-output name=branch::${{ github.event.forkee.default_branch }}" + - name: Get source branch commit + id: source_commit + run: echo "::set-output name=commit::${{ github.event.pull_request.head.sha }}" - name: Fetch source branch - run: git fetch origin ${{ steps.source_branch.outputs.branch }}:${{ steps.source_branch.outputs.branch }} + run: git fetch origin ${{ steps.source_commit.outputs.commit }}:${{ steps.source_commit.outputs.commit }} - name: Checkout source branch - run: git checkout ${{ steps.source_branch.outputs.branch }} + run: git checkout ${{ steps.source_commit.outputs.commit }} - name: Test run: |