File tree 3 files changed +39
-0
lines changed
3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- dev
7
7
8
+ env :
9
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
10
+ DOTNET_NOLOGO : true
11
+
8
12
jobs :
9
13
publish :
10
14
25
29
echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
26
30
shell : pwsh
27
31
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
+ $globalJson.sdk.version = $version
38
+ $globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath
39
+ shell : pwsh
40
+
28
41
- name : Install .NET Core
29
42
uses : actions/setup-dotnet@v4
30
43
with :
Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' releases/*'
7
7
8
+ env :
9
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
10
+ DOTNET_NOLOGO : true
11
+
8
12
jobs :
9
13
publish :
10
14
runs-on : ubuntu-latest
27
31
echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
28
32
shell : pwsh
29
33
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
+ $globalJson.sdk.version = $version
40
+ $globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath
41
+ shell : pwsh
42
+
30
43
- name : Install .NET Core
31
44
uses : actions/setup-dotnet@v4
32
45
with :
Original file line number Diff line number Diff line change 10
10
- master
11
11
- dev
12
12
13
+ env :
14
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
15
+ DOTNET_NOLOGO : true
16
+
13
17
jobs :
14
18
build :
15
19
28
32
with :
29
33
dotnet-version : ${{ matrix.dotnet }}
30
34
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
+ $globalJson.sdk.version = $version
41
+ $globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath
42
+ shell : pwsh
43
+
31
44
- name : Install local tools
32
45
run : dotnet tool restore
33
46
You can’t perform that action at this time.
0 commit comments