Skip to content

Commit 53b69db

Browse files
authored
Merge pull request #158 from it-at-m/higher-debug
Fetch remote tags before finding the newest
2 parents cbe42e0 + 79f9806 commit 53b69db

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

riski-document-pipeline/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "document_pipeline"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = "==3.13.9"

riski-document-pipeline/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tag-version.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ $prefix = $serviceConfig[$Service].Prefix
203203
Write-Host "Finding latest version for $Service service..."
204204
Write-Host "Looking for tags with prefix: $prefix" -ForegroundColor Cyan
205205

206+
# Fetch latest tags from remote
207+
Write-Host "Fetching latest tags from remote..." -ForegroundColor DarkGray
208+
git fetch --tags | Out-Null
209+
if ($LASTEXITCODE -ne 0) {
210+
Write-Host "Failed to fetch remote tags. Aborting to avoid using stale tag data." -ForegroundColor Red
211+
exit 1
212+
}
213+
206214
# Get all tags as an array
207215
$allTags = @(git tag)
208216
# Filter tags that start with the prefix

0 commit comments

Comments
 (0)