Explicitly fetch tags when checking out

This commit is contained in:
Jon Chambers 2025-04-08 16:08:48 -04:00
parent c0c6e725df
commit 1f4804f381

View File

@ -11,6 +11,10 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# We'll only get a lightweight tag without `fetch-tags`, and `jgitver` expects an annotated tag
with:
fetch-depth: 0
fetch-tags: true
- name: Set up JDK 21 with Maven Central
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0