Skip to content

Commit c6feac2

Browse files
ivoanjoeregon
authored andcommitted
Avoid getting full history when getting tags
1 parent 63483e7 commit c6feac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: latest_commit_3_4_asan
3838
working-directory: ruby
3939
run: |
40-
git fetch origin --no-tags '+refs/tags/v3_4_*:refs/tags/v3_4_*'
40+
git fetch origin --depth=1 --no-tags '+refs/tags/v3_4_*:refs/tags/v3_4_*'
4141
LATEST_TAG=$(git tag --list | grep -E "v3_4_[0-9]+$" | sort -V | tail -n1)
4242
git checkout "$LATEST_TAG"
4343
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)