From 08264c0991c228573c168dd19767664110856738 Mon Sep 17 00:00:00 2001 From: David Eriksson Date: Sun, 29 Oct 2023 18:46:05 +0100 Subject: [PATCH] Force .NET version in build --- .github/workflows/dotnet.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5fb96e8..77bc9f5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,8 +18,11 @@ jobs: - uses: actions/checkout@v4 - name: Setup dotnet ${{ matrix.dotnet-version }} uses: actions/setup-dotnet@v3 + id: stepid with: dotnet-version: ${{ matrix.dotnet-version }} + - name: Create temporary global.json + run: echo '{"sdk":{"version": "${{ steps.stepid.outputs.dotnet-version }}"}}' > ./global.json - name: Display dotnet version run: dotnet --version - name: Restore dependencies