ci: fetch tags on checkout - #1053
Open
j-zimnowoda wants to merge 3 commits into
Open
Conversation
j-zimnowoda
requested review from
dennisvankekem and
ferruhcihan
as code owners
August 7, 2026 11:53
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the release GitHub Actions workflow to ensure git tags are available during checkout so the release automation can compute and create the correct release tag.
Changes:
- Fetch tags during the
release-get-tagjob checkout to support tag-based release tag calculation. - Adjust checkout settings in
release-softwareto use a shallow fetch plus tag fetching.
Suppressed comments (1)
.github/workflows/release-software.yml:66
- This job previously used
fetch-depth: 0, which is the same approach used elsewhere in the repo for release/tag derivation (see.github/workflows/cut-release-branch.yml:39-40). Switching to a shallow checkout (fetch-depth: 1) can break steps/actions that need to compare against older tags/commits (even if tag refs are present), and it’s inconsistent with the established workflow pattern. Consider keeping a full fetch here.
ref: ${{ env.RELEASE_BRANCH }}
fetch-depth: 1
fetch-tags: true
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
37
to
+39
| fetch-depth: 1 | ||
|
|
||
| # This is required to fetch all tags so that release-get-tag can find the highest tag on the branch | ||
| fetch-tags: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is required to fetch all tags so that release-get-tag can find the highest tag on the branch.