-
Notifications
You must be signed in to change notification settings - Fork 181
Description
Hi,
I have the following problem with the "IncrementVersionNumber" workflow:
[IncrementVersionNumber] Unexpected error when running action. Error Message: The new version number (1.10) is less than the old version number (1.9). The version number must be incremented., StackTrace: at Set-VersionInSettingsFile, D:\a\_actions\microsoft\AL-Go-Actions\v5.0\IncrementVersionNumber\IncrementVersionNumber.psm1: line 108 <- at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v5.0\IncrementVersionNumber\IncrementVersionNumber.ps1: line 46 <- at <ScriptBlock>, D:\a\_temp\989f38ee-08d1-4139-9f8b-28d0b976b3b7.ps1: line 4 <- at <ScriptBlock>, <No file>: line 1
I couldn't find the exact reason in the code, but it seems the System.Version cast is not applied correctly to variables before ($newValue -lt $oldValue) comparison.
These are the steps to recreate the issue:
- Create new repo from AL-Go-PTE template
- Wait until Initial Build is done
- Run "Create new app" workflow with sample code parameter
- Run "Increment Version Number" workflow with Updated Version Number parameter: 1.9
- Run "Increment Version Number" workflow with Updated Version Number parameter: +0.1
Here is my public repo with the issue recreated: https://github.com/akoniecki/versionincrement-debugging/actions/runs/8718133126/job/23914709863#step:7:60
Metadata
Metadata
Assignees
Labels
Type
Projects
Status