Skip to content

Commit b7d3838

Browse files
Make release workflow manual-only (#5)
## Summary - Remove the `master` push trigger from the release workflow so merges do not automatically request release approval - Update the parity coherence script to use the exported singular PowerShell user-setting cmdlets ## Validation - `cargo build -p pinget-cli --manifest-path rust\Cargo.toml` - `dotnet build dotnet\Devolutions.Pinget.slnx -c Release` - `pwsh -NoLogo -NoProfile -File (Resolve-Path 'scripts\Build-PowerShellModule.ps1') -NoBuild -OutputRoot dist\powershell-module -Clean` - Packaged module import and `Get-PingetUserSetting` smoke check - `pwsh -NoLogo -NoProfile -File (Resolve-Path 'dotnet\tests\RunTests.ps1')` --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0796652 commit b7d3838

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
# Keep releases manual-only so default-branch merges do not request approval.
75
workflow_dispatch:
86
inputs:
97
version:

‎scripts/Parity-Compare-WingetParity.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function Get-DotnetSettingsObject {
246246

247247
function Get-PowerShellSettingsObject {
248248
Import-PingetPowerShellModule
249-
return Get-PingetUserSettings -ErrorAction Stop
249+
return Get-PingetUserSetting -ErrorAction Stop
250250
}
251251

252252
function Assert-TestSettingsVisible {
@@ -649,7 +649,7 @@ try {
649649

650650
Write-Section "Settings roundtrip"
651651
$testSettings = New-TestSettingsHashtable
652-
Set-PingetUserSettings -UserSettings $testSettings -ErrorAction Stop | Out-Null
652+
Set-PingetUserSetting -UserSettings $testSettings -ErrorAction Stop | Out-Null
653653
Assert-True -Condition (Test-Path -Path $settingsPath) -Message "PowerShell settings write did not create the packaged settings file."
654654
Assert-TestSettingsVisible -SettingsObject (Get-RustSettingsObject) -Label "Rust pinget settings export"
655655
Assert-TestSettingsVisible -SettingsObject (Get-DotnetSettingsObject) -Label "C# pinget settings export"

0 commit comments

Comments
 (0)