From ca891b981f19933db88f2624f67366b38b63adac Mon Sep 17 00:00:00 2001 From: Cameron White Date: Wed, 11 Oct 2023 20:44:34 -0400 Subject: [PATCH] Attempt to prevent the .NET 6 build from picking up newer .NET versions from the environment This follows the recommended approach from https://github.com/actions/setup-dotnet --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0e6620e83..4102290c89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,8 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: ${{matrix.dotnet_version}} + - name: Create temporary global.json + run: echo '{"sdk":{"version": "${{ steps.stepid.outputs.dotnet-version }}"} }' > ./global.json - name: Install Apt Dependencies run: | sudo apt update