From 9e7fd95f58a42b819f697c9813c6a56e3d80f3de Mon Sep 17 00:00:00 2001 From: Craig Treasure Date: Wed, 16 Feb 2022 11:11:47 -1000 Subject: [PATCH] Change .NET SDK version to a fixed version - This change adjusts the .NET SDK version installed to be fixed to 6.0.102 to workaround issues with `dotnet format` (see https://github.com/dotnet/format/issues/1519). --- .github/workflows/CI.yml | 3 ++- .github/workflows/PR.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 808c77a..25b6730 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,6 +14,7 @@ on: env: # Stop wasting time caching packages DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + SETUP_DOTNET_VERSION: 6.0.102 jobs: build: @@ -33,7 +34,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.x + dotnet-version: ${{ env.SETUP_DOTNET_VERSION }} - name: Set version id: version diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index c328a96..acfa379 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -5,6 +5,7 @@ on: pull_request env: # Stop wasting time caching packages DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + SETUP_DOTNET_VERSION: 6.0.102 jobs: build: @@ -24,7 +25,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.x + dotnet-version: ${{ env.SETUP_DOTNET_VERSION }} - name: Install dependencies run: dotnet restore