Skip to content

Commit f15c822

Browse files
committed
Fix crazy branch names
1 parent 3da4a2a commit f15c822

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
# Get the version suffix from the branch name and auto-incrementing build number. For example: 'main' and '123' => 'main-00123'
8484
$revision = "{0:D5}" -f ${{ github.run_number }}
8585
$branchName = '${{ env.BRANCH_NAME }}'
86-
$safeBranchName = $branchName -Replace '[^a-zA-Z0-9_]', '-'
86+
$safeBranchName = $branchName -Replace '[^a-zA-Z0-9-]', '-'
8787
$versionSuffix = "$safeBranchName-$revision"
8888
8989
Write-Output "Using version suffix: $versionSuffix"

0 commit comments

Comments
 (0)