File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,17 @@ jobs:
15
15
- name : " Checkout Repository"
16
16
17
17
- name : " Modify PowerShell Repository"
18
- id : " modify-powershell-repository"
19
18
run : |
20
- Write-Host -Object "::set-output name=installation-policy::$((Get-PSRepository -Name 'PSGallery').InstallationPolicy)"
21
19
Set-PSRepository -Name 'PSGallery' -InstallationPolicy 'Trusted' -Verbose
22
20
- name : " Setup PowerShellGet"
23
21
run : |
24
- Install-Module -Name 'PowerShellGet' -MinimumVersion '2.2.5' -Scope 'AllUsers' -AcceptLicense -Verbose
22
+ Install-Module -Name 'PowerShellGet' -MinimumVersion '2.2.5' -Scope 'AllUsers' -AcceptLicense -Confirm:$False - Verbose
25
23
- name : " Update PowerShell Modules"
26
24
run : |
27
- Update-Module -Scope 'AllUsers' -AcceptLicense -Verbose
25
+ Update-Module -Scope 'AllUsers' -AcceptLicense -Confirm:$False - Verbose
28
26
- name : " Test Publish"
29
27
run : |
30
28
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey 'GUID' -WhatIf -Verbose
31
29
- name : " Publish"
32
30
run : |
33
31
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey '${{secrets.POWERSHELLGALLERY_TOKEN}}' -Verbose
34
- - name : " Revert Modify PowerShell Repository"
35
- if : " ${{steps.modify-powershell-repository.outcome == 'success' && always()}}"
36
- run : |
37
- Set-PSRepository -Name 'PSGallery' -InstallationPolicy '${{steps.modify-powershell-repository.outputs.installation-policy}}'
You can’t perform that action at this time.
0 commit comments