Skip to content

Commit

Permalink
Force .NET version in build
Browse files Browse the repository at this point in the history
  • Loading branch information
twogood committed Oct 29, 2023
1 parent fde6b19 commit 08264c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08264c0

Please sign in to comment.