File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - dev
77
8+ env :
9+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
10+ DOTNET_NOLOGO : true
11+
812jobs :
913 publish :
1014
2529 echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
2630 shell : pwsh
2731
32+ - name : Add version to global.json
33+ run : |
34+ $version = "7.0.406"
35+ $globalJsonPath = "global.json"
36+ $globalJson = Get-Content -Raw -Path $globalJsonPath | ConvertFrom-Json
37+ if ($null -eq $globalJson.sdk.version) {
38+ $globalJson.sdk | Add-Member -Type NoteProperty -Name version -Value $version
39+ } else {
40+ $globalJson.sdk.version = $version
41+ }
42+ $globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath
43+ shell : pwsh
44+
2845 - name : Install .NET Core
2946 uses : actions/setup-dotnet@v4
3047 with :
Original file line number Diff line number Diff line change 55 tags :
66 - ' releases/*'
77
8+ env :
9+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
10+ DOTNET_NOLOGO : true
11+
812jobs :
913 publish :
1014 runs-on : ubuntu-latest
2731 echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
2832 shell : pwsh
2933
34+ - name : Add version to global.json
35+ run : |
36+ $version = "7.0.406"
37+ $globalJsonPath = "global.json"
38+ $globalJson = Get-Content -Raw -Path $globalJsonPath | ConvertFrom-Json
39+ if ($null -eq $globalJson.sdk.version) {
40+ $globalJson.sdk | Add-Member -Type NoteProperty -Name version -Value $version
41+ } else {
42+ $globalJson.sdk.version = $version
43+ }
44+ $globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath
45+ shell : pwsh
46+
3047 - name : Install .NET Core
3148 uses : actions/setup-dotnet@v4
3249 with :
Original file line number Diff line number Diff line change 1010 - master
1111 - dev
1212
13+ env :
14+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
15+ DOTNET_NOLOGO : true
16+
1317jobs :
1418 build :
1519
2832 with :
2933 dotnet-version : ${{ matrix.dotnet }}
3034
35+ - name : Add version to global.json
36+ run : |
37+ $version = "${{ matrix.dotnet }}"
38+ $globalJsonPath = "global.json"
39+ $globalJson = Get-Content -Raw -Path $globalJsonPath | ConvertFrom-Json
40+ if ($null -eq $globalJson.sdk.version) {
41+ $globalJson.sdk | Add-Member -Type NoteProperty -Name version -Value $version
42+ } else {
43+ $globalJson.sdk.version = $version
44+ }
45+ $globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath
46+ shell : pwsh
47+
3148 - name : Install local tools
3249 run : dotnet tool restore
3350
You can’t perform that action at this time.
0 commit comments