From 7ae858379bf54c706a142de40e4d07c0d4d2e699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20CORTIER?= Date: Mon, 8 Dec 2025 17:03:47 +0900 Subject: [PATCH] ci(nuget): fix auto-versioning to remove leading zeros The date-based auto-versioning was using formatted strings that produced leading zeros (e.g., "2025.12.08"), which violates package version format and causes cargo to reject the version. Changed to use integer date components instead, producing valid versions like "2025.12.8". --- .github/workflows/nuget.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 0f2749f2..129bda1d 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -46,7 +46,8 @@ jobs: run: | $Version = '${{ github.event.inputs.version }}' if ($Version -eq '' -or $Version -eq 'latest') { - $Version = (Get-Date -Format "yyyy.MM.dd") + ".0" + $DateNow = Get-Date + $Version = "{0}.{1}.{2}.0" -f $DateNow.Year, $DateNow.Month, $DateNow.Day } if ($Version -notmatch '^\d+\.\d+\.\d+\.\d+$') {