We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf33a3 commit 0e53645Copy full SHA for 0e53645
.github/workflows/build.yml
@@ -85,8 +85,8 @@ jobs:
85
# Get the version suffix from the auto-incrementing build number. For example: '123' => 'master-00123'
86
$revision = "{0:D5}" -f [convert]::ToInt32($env:GITHUB_RUN_NUMBER, 10)
87
$branchName = ![string]::IsNullOrEmpty($env:GITHUB_HEAD_REF) ? $env:GITHUB_HEAD_REF : $env:GITHUB_REF_NAME
88
- $safeName = $branchName.Replace('/', '-').Replace('_', '-')
89
- $versionSuffix = "$safeName-$revision"
+ $safeBranchName = $($branchName -Replace '[^a-zA-Z0-9-]', '-')[0..40] -Join ""
+ $versionSuffix = "$safeBranchName-$revision"
90
}
91
Write-Output "Using version suffix: $versionSuffix"
92
Write-Output "PACKAGE_VERSION_SUFFIX=$versionSuffix" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
0 commit comments