diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a80c7dcca..58311a082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,8 @@ jobs: # Fetch base ref for merge_group if [ "${{ github.event_name }}" = "merge_group" ]; then - git fetch origin ${{ github.event.merge_group.base_ref }} --depth=1 + # Base ref could be a few commits away, so fetch a few commits in case the queue is long + git fetch origin ${{ github.event.merge_group.base_ref }} --depth=20 git diff --name-only ${{ github.event.merge_group.base_sha }} ${{ github.sha }} > changed_files.txt echo "Changed files:"