Skip to content

Commit 2e90102

Browse files
committed
Github CI: Fix fetching tags.
Signed-off-by: Pascal Spörri <[email protected]>
1 parent 56112fd commit 2e90102

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ jobs:
4545
- name: Checkout
4646
uses: actions/checkout@v4
4747
with:
48-
fetch-tags: true # Ensure we can run "git describe"
48+
# Ensure we can run `git describe`.
49+
# Related issue:
50+
# https://github.com/actions/checkout/issues/1467
51+
fetch-tags: ${{ ! contains(github.ref, 'refs/tags/') }} # Only fetch the tag if we're not being triggered by a tag.
4952
fetch-depth: 50
5053

5154
- name: Cache GRPC Build (Restore)

0 commit comments

Comments
 (0)