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