Skip to content

Commit

Permalink
Github CI: Fix fetching tags.
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Spörri <[email protected]>
  • Loading branch information
pspoerri committed Apr 19, 2024
1 parent 56112fd commit 2e90102
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true # Ensure we can run "git describe"
# Ensure we can run `git describe`.
# Related issue:
# https://github.com/actions/checkout/issues/1467
fetch-tags: ${{ ! contains(github.ref, 'refs/tags/') }} # Only fetch the tag if we're not being triggered by a tag.
fetch-depth: 50

- name: Cache GRPC Build (Restore)
Expand Down

0 comments on commit 2e90102

Please sign in to comment.