Skip to content

Commit

Permalink
try setting fetch depth on checkout action instead
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwittenburg committed Sep 14, 2023
1 parent 67c0cf8 commit 0f3105c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test_building_only_changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 1000
- name: Matrix element to relative path
run: |
REL_PATH=$(realpath --relative-to $(git rev-parse --show-toplevel) ${{ matrix.docker-image }})
Expand Down
2 changes: 1 addition & 1 deletion scripts/get-changed-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo "Base: ${BASE_SHA}"
echo "Head: ${HEAD_SHA}"
echo ""

git fetch --update-shallow origin ${BASE_SHA}
git fetch origin ${BASE_SHA}
git fetch origin ${HEAD_SHA}

echo ""
Expand Down

0 comments on commit 0f3105c

Please sign in to comment.