Skip to content

Commit df6afdc

Browse files
author
katzman
committed
go back to less sophisticated checkout depth
1 parent 38e4da6 commit df6afdc

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
submodules: recursive
21+
fetch-depth: 0
2122

2223
- name: Set up Python
2324
uses: actions/setup-python@v5
@@ -48,12 +49,8 @@ jobs:
4849
id: changed-files
4950
run: |
5051
if [ "${{ github.event_name }}" == "pull_request" ]; then
51-
git fetch origin ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/${{ github.event.pull_request.base.ref }} --depth=50
52-
BASE_COMMIT=$(git merge-base HEAD origin/${{ github.event.pull_request.base.ref }})
53-
HEAD_COMMIT=HEAD
54-
echo "Base branch: ${{ github.event.pull_request.base.ref }}"
55-
echo "Base commit (merge-base): $BASE_COMMIT"
56-
echo "Head commit: $HEAD_COMMIT"
52+
BASE_COMMIT=${{ github.event.pull_request.base.sha }}
53+
HEAD_COMMIT=${{ github.event.pull_request.head.sha }}
5754
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMR $BASE_COMMIT..$HEAD_COMMIT | grep '\.sol$' || true)
5855
else
5956
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMR HEAD^..HEAD | grep '\.sol$' || true)

0 commit comments

Comments
 (0)