Skip to content

Commit 234be8a

Browse files
Remove PowerShell <7.4 workaround from OneBranch (#113)
And fix some quoting.
1 parent 42b72d6 commit 234be8a

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.pipelines/SecretStore-Official.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ extends:
7878
inputs:
7979
packageType: sdk
8080
useGlobalJson: true
81-
- pwsh: |
82-
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
83-
Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
84-
./tools/installPSResources.ps1 -PSRepository CFS
81+
- pwsh: ./tools/installPSResources.ps1 -PSRepository CFS
8582
displayName: Install PSResources
8683
- pwsh: Invoke-Build -Configuration $(BuildConfiguration) -Task Build, Test
8784
displayName: Build

tools/installPSResources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Install-PSResource -Verbose -TrustRepository -RequiredResource @{
1616
InvokeBuild = @{
1717
version = "5.12.1"
1818
repository = $PSRepository
19-
}
19+
}
2020
platyPS = @{
2121
version = "0.14.2"
2222
repository = $PSRepository

tools/updateVersion.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ $f = $f -replace '^(?<prefix>\s+<ModuleVersion>)(.+)(?<suffix></ModuleVersion>)$
2020
$f | Set-Content -Path $Path
2121
git add $Path
2222

23-
git commit --edit --message v${Version}: $Changes"
24-
"
23+
git commit --edit --message "v${Version}: $Changes"

0 commit comments

Comments
 (0)