From dfc0cc4449b626ab11ef9825b2c7baf8023e042b Mon Sep 17 00:00:00 2001 From: Jarom Jones <31190203+pacjman@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:20:23 +0000 Subject: [PATCH] specify env at the top level --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab60daa..f29cd50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: pull_request: branches: - main + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + jobs: build: runs-on: ubuntu-latest @@ -20,5 +24,3 @@ jobs: run: dotnet pack --configuration Release --no-build src/HealthCheck.sln -o dist - name: Push run: dotnet nuget push dist/*.nupkg --source https://nuget.pkg.github.com/cerberix/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}