Skip to content

Commit

Permalink
Update ci.yml to allow releasing versions without suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed Feb 5, 2024
1 parent 9ec7d86 commit c0877c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
default: false
required: true
version_suffix:
description: 'Suffix for the NuGet packages (without leading -). Build ID will be appended.'
description: 'Suffix for the NuGet packages (without leading -). Build ID will be appended. Use "-" to force empty.'
required: false
specs_filter:
description: 'Filter for Specs execution (e.g. Category=basicExecution)'
Expand Down Expand Up @@ -77,6 +77,9 @@ jobs:
$dateString = $date.ToString('yyyyMMdd')
$versionSuffix = "ci$dateString-${env:GITHUB_RUN_NUMBER}"
}
elseif ($versionSuffix -eq "-") {
$versionSuffix = ""
}
else {
$versionSuffix = "$versionSuffix-${env:GITHUB_RUN_NUMBER}"
}
Expand Down

0 comments on commit c0877c7

Please sign in to comment.