diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index abab6d7..ed5cbad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,10 @@ name: CI Build on: [push, pull_request] +env: + NUGET_URL: https://dist.nuget.org/win-x86-commandline/latest/nuget.exe + + jobs: linux: runs-on: ubuntu-latest @@ -8,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - name: Download latest NuGet - run: wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe + run: wget $NUGET_URL - name: Install Dependencies run: mono nuget.exe restore @@ -22,7 +26,7 @@ jobs: - uses: actions/checkout@v2 - name: Download latest NuGet - run: curl -o nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe + run: curl -o nuget.exe $NUGET_URL - name: Install Dependencies run: mono nuget.exe restore