mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
Interpret dotnet-version as a string
This commit is contained in:
parent
2f30b86ee7
commit
54563ab4b0
5
.github/workflows/workflow.yml
vendored
5
.github/workflows/workflow.yml
vendored
@ -91,10 +91,11 @@ jobs:
|
||||
run: |
|
||||
Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item "$env:ProgramFiles\dotnet/*" -Recurse -Force -ErrorAction SilentlyContinue
|
||||
- name: Setup dotnet 2.0
|
||||
# 2.0, 3.0, 5.0 needs to be in single quotes to interpret as a string instead of as an integer
|
||||
- name: Setup dotnet '2.0'
|
||||
uses: ./
|
||||
with:
|
||||
dotnet-version: 2.0
|
||||
dotnet-version: '2.0'
|
||||
- name: Verify dotnet
|
||||
if: runner.os != 'windows'
|
||||
run: __tests__/verify-dotnet-version.sh 2.0.9
|
||||
|
Loading…
x
Reference in New Issue
Block a user