We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6afbff7 + 851bf3e commit 9bdcf33Copy full SHA for 9bdcf33
.github/workflows/build.yml
@@ -97,7 +97,7 @@ jobs:
97
else {
98
# Get the version suffix from the auto-incrementing build number. For example: '123' => 'master-00123'
99
$revision = "{0:D5}" -f [convert]::ToInt32($env:GITHUB_RUN_NUMBER, 10)
100
- $versionSuffix = "$($env:GITHUB_HEAD_REF ?? $env:GITHUB_REF_NAME)-$revision"
+ $versionSuffix = "$(![string]::IsNullOrEmpty($env:GITHUB_HEAD_REF) ? $env:GITHUB_HEAD_REF : $env:GITHUB_REF_NAME)-$revision"
101
}
102
Write-Output "Using version suffix: $versionSuffix"
103
Write-Output "PACKAGE_VERSION_SUFFIX=$versionSuffix" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
0 commit comments