From fd18bb134c7933f90648d904dec9796936875e0c Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Fri, 7 Jun 2024 13:28:44 -0700 Subject: [PATCH] [repo] Fix a couple issues in automation workflows/scripts (#5680) --- .github/workflows/automation.yml | 2 +- build/scripts/post-release.psm1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index e85a3720aba..1385474892a 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -13,7 +13,7 @@ on: value: ${{ vars.AUTOMATION_EMAIL }} secrets: OPENTELEMETRYBOT_GITHUB_TOKEN: - required: true + required: false jobs: resolve-automation: diff --git a/build/scripts/post-release.psm1 b/build/scripts/post-release.psm1 index fc72bc208a9..fa141ba0d80 100644 --- a/build/scripts/post-release.psm1 +++ b/build/scripts/post-release.psm1 @@ -212,7 +212,7 @@ function PushPackagesPublishReleaseUnlockAndPostNoticeOnPrepareReleasePullReques gh pr comment $pullRequestNumber ` --body "I am uploading the packages for ``$tag`` to NuGet and then I will publish the release." - nuget push "$artifactDownloadPath/**/*.nupkg" -Source https://api.nuget.org/v3/index.json -ApiKey "$env.NUGET_TOKEN" -SymbolApiKey "$env.NUGET_TOKEN" + nuget push "$artifactDownloadPath/**/*.nupkg" -Source https://api.nuget.org/v3/index.json -ApiKey "$env:NUGET_TOKEN" -SymbolApiKey "$env:NUGET_TOKEN" if ($LASTEXITCODE -gt 0) {