Skip to content

Commit 7cabf0d

Browse files
committed
fix for invalid secret
1 parent a7b5f87 commit 7cabf0d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/manual-publish-powershell-gallery.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
- name: Publish to PowerShell Gallery
107107
shell: pwsh
108108
env:
109-
NUGET_API_KEY: ${{ secrets.POWERSHELLGALLERY_API }}
109+
NUGET_API_KEY: ${{ secrets.POWERSHELLGALLERY_APIKEY }}
110110
run: |
111111
$isDryRun = "${{ github.event.inputs.mode }}" -eq "DRY_RUN"
112112
@@ -115,7 +115,7 @@ jobs:
115115
} else {
116116
# Validate that we have the API key
117117
if (-not $env:NUGET_API_KEY) {
118-
throw "POWERSHELLGALLERY_API secret is not set"
118+
throw "POWERSHELLGALLERY_APIKEY secret is not set"
119119
}
120120
}
121121

.github/workflows/publish-powershell-gallery.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ jobs:
179179
- name: Publish to PowerShell Gallery
180180
shell: pwsh
181181
env:
182-
NUGET_API_KEY: ${{ secrets.POWERSHELLGALLERY_API }}
182+
NUGET_API_KEY: ${{ secrets.POWERSHELLGALLERY_APIKEY }}
183183
run: |
184184
# Validate that we have the API key
185185
if (-not $env:NUGET_API_KEY) {
186-
throw "POWERSHELLGALLERY_API secret is not set"
186+
throw "POWERSHELLGALLERY_APIKEY secret is not set"
187187
}
188188
189189
Write-Host "Publishing PSBlogger version ${{ needs.check-version.outputs.new-version }} to PowerShell Gallery..."

0 commit comments

Comments
 (0)