Skip to content

IncrementVersionNumber - the new version number is less than the old version number  #1041

@akoniecki

Description

@akoniecki

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:

  1. Create new repo from AL-Go-PTE template
  2. Wait until Initial Build is done
  3. Run "Create new app" workflow with sample code parameter
  4. Run "Increment Version Number" workflow with Updated Version Number parameter: 1.9
  5. 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

Fix ReadyFix ReadyShippedFeature is included in the latest versionbugSomething isn't working

Type

No type

Projects

Status

✅ Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions