From 7414e4ba6e2c0ffee6e54001b308385146878f98 Mon Sep 17 00:00:00 2001 From: Afshin Arani Date: Thu, 2 Apr 2020 10:52:59 +0430 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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