mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
fix string formatting
This commit is contained in:
@@ -8,15 +8,15 @@ switch -regex ($Env:GITHUB_REF) {
|
|||||||
'^refs\/pull\/*.' {
|
'^refs\/pull\/*.' {
|
||||||
$splitRef = $Env:GITHUB_REF -split "/"
|
$splitRef = $Env:GITHUB_REF -split "/"
|
||||||
$phase = "pr$($splitRef[2])"
|
$phase = "pr$($splitRef[2])"
|
||||||
$newVersionString = "{0}-{3}-{4}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
$newVersionString = "{0}-{1}-{2}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
||||||
}
|
}
|
||||||
'^refs\/heads\/feature-2.0.0\/*.' {
|
'^refs\/heads\/feature-2.0.0\/*.' {
|
||||||
$phase = 'alpha'
|
$phase = 'alpha'
|
||||||
$newVersionString = "{0}-{3}-{4}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
$newVersionString = "{0}-{1}-{2}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
||||||
}
|
}
|
||||||
'^refs\/heads\/development-2.0.0' {
|
'^refs\/heads\/development-2.0.0' {
|
||||||
$phase = 'beta'
|
$phase = 'beta'
|
||||||
$newVersionString = "{0}-{3}-{4}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
$newVersionString = "{0}-{1}-{2}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user