Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,18 @@ try {
$appRevision = $artifactVersion.Revision
}
elseif (($settings.versioningStrategy -band 16) -eq 16) {
# For versioningStrategy +16, the version number is taken from repoVersion setting
$repoVersion = [System.Version]$settings.repoVersion
if (($settings.versioningStrategy -band 15) -eq 3) {
# For versioning strategy 3, we need to get the build number from repoVersion setting
$appBuild = $repoVersion.Build
if ($appBuild -eq -1) {
Write-Host "WARNING: RepoVersion setting only contains Major.Minor version. When using versioningstrategy 3, it should contain 3 digits"
$appBuild = 0
}
}
$runAlPipelineParams += @{
"appVersion" = $settings.repoVersion
"appVersion" = "$($repoVersion.Major).$($repoVersion.Minor)"
}
}

Expand Down
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Read more at [workflowDefaultInputs](https://aka.ms/algosettings#workflowDefault

### Issues

- Issue 2055 When using versioningStrategy 3+16, you get an error when building
- Issue 2039 Error when deploy to environment: NewTemporaryFolder is not recognized
- Issue 1961 KeyVault access in PR pipeline
- Discussion 1911 Add support for reportSuppressedDiagnostics
Expand Down
Loading