Skip to content

Commit bce8aac

Browse files
committed
🔧 [build] Update secret variable names in publish workflow for consistency
- Renamed PSGALLERY_API_KEY to PSGALLERYAPIKEY - Renamed NUGET_API_KEY to NUGETAPIKEY - Updated references in environment variables and conditions for publishing Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>
1 parent b8ee71c commit bce8aac

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ on:
2323
types: [published]
2424
workflow_call:
2525
secrets:
26-
PSGALLERY_API_KEY:
26+
PSGALLERYAPIKEY:
2727
required: false
28-
NUGET_API_KEY:
28+
NUGETAPIKEY:
2929
required: false
3030
PACKAGES_TOKEN:
3131
required: false
@@ -181,8 +181,8 @@ jobs:
181181
- create-release
182182
runs-on: windows-latest
183183
env:
184-
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
185-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
184+
PSGALLERYAPIKEY: ${{ secrets.PSGALLERYAPIKEY }}
185+
NUGETAPIKEY: ${{ secrets.NUGETAPIKEY }}
186186
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
187187
PUBLISH_TO_NUGET_INPUT: ${{ github.event.inputs.publishToNuGet }}
188188
PUBLISH_TO_GITHUB_INPUT: ${{ github.event.inputs.publishToGitHub }}
@@ -238,7 +238,7 @@ jobs:
238238
throw "Package not found at $packagePath"
239239
}
240240
241-
$apiKey = $env:PSGALLERY_API_KEY
241+
$apiKey = $env:PSGALLERYAPIKEY
242242
if ([string]::IsNullOrWhiteSpace($apiKey)) {
243243
Write-Host 'No PowerShell Gallery API key provided. Skipping publish.'
244244
return
@@ -249,14 +249,14 @@ jobs:
249249
shell: pwsh
250250

251251
- name: Publish to NuGet.org
252-
if: ${{ env.NUGET_API_KEY != '' && (github.event_name != 'workflow_dispatch' || env.PUBLISH_TO_NUGET_INPUT != 'false') }}
252+
if: ${{ env.NUGETAPIKEY != '' && (github.event_name != 'workflow_dispatch' || env.PUBLISH_TO_NUGET_INPUT != 'false') }}
253253
run: |
254254
$packagePath = '${{ steps.package.outputs.packagePath }}'
255255
if (-not (Test-Path $packagePath)) {
256256
throw "Package not found at $packagePath"
257257
}
258258
259-
$apiKey = $env:NUGET_API_KEY
259+
$apiKey = $env:NUGETAPIKEY
260260
if ([string]::IsNullOrWhiteSpace($apiKey)) {
261261
Write-Host 'No NuGet.org API key provided. Skipping publish.'
262262
return

‎.github/workflows/updateChangeLogs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ jobs:
123123
Add-Content -Path $env:GITHUB_STEP_SUMMARY "- CHANGELOG.md files were generated or updated in the repository and subfolders."
124124
Add-Content -Path $env:GITHUB_STEP_SUMMARY "- A pull request was created or updated with the new changelogs."
125125
Add-Content -Path $env:GITHUB_STEP_SUMMARY "- Check runs were updated to reflect the workflow status."
126-
Add-Content -Path $env:GITHUB_STEP_SUMMARY "- Workflow completed with status: ${{ job.status }}".
126+
Add-Content -Path $env:GITHUB_STEP_SUMMARY "- Workflow completed with status: ${{ job.status }}."

0 commit comments

Comments
 (0)