Skip to content

Commit

Permalink
Update apiBreakageTest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rozaychen authored Aug 7, 2024
1 parent 51a48ba commit b87b49a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/apiBreakageTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
ref: ${{ github.head_ref }} # Checkout the PR branch
fetch-depth: 0
fetch-depth: 1

- name: Fetch the branchs
run: |
Expand All @@ -26,6 +26,7 @@ jobs:
- name: Check if branch is up-to-date with reference branch
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
git fetch origin ${{ github.head_ref }} --depth=0
echo "${{ github.event.pull_request.base.sha }}"
echo "${{ github.event.pull_request.head.sha }}"
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}; then
Expand Down

0 comments on commit b87b49a

Please sign in to comment.