From 310a31d8252dfeaaa4791e862b47af9b27bbfce0 Mon Sep 17 00:00:00 2001 From: Rozay Chen Date: Mon, 15 Jul 2024 15:55:47 -0700 Subject: [PATCH] Update apiBreakTest.yml --- .github/workflows/apiBreakTest.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/apiBreakTest.yml b/.github/workflows/apiBreakTest.yml index a908b59e06..ab4a212f91 100644 --- a/.github/workflows/apiBreakTest.yml +++ b/.github/workflows/apiBreakTest.yml @@ -19,17 +19,19 @@ jobs: ref: ${{ github.head_ref }} # Checkout the PR branch fetch-depth: 1 - - name: Fetch the base branch + - name: Fetch the branchs run: | git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1 + git fetch origin ${{ github.sha }} - name: List branches after fetch run: git branch -a + - name: Checkout test-final commit + run: git checkout ${{ github.sha }} + - name: Checkout test-final branch run: git checkout ${{ github.head_ref }} - - name: Checkout test-final branch - run: git checkout ${{ github.sha }} - name: Setup and Run Swift API Diff env: