Skip to content

Commit bfb825c

Browse files
Debug get_version-step
1 parent 0220e1e commit bfb825c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ jobs:
3636
run: dotnet pack --configuration Release System.Text.Json.Extensions
3737
- name: Get Version
3838
id: get_version
39-
shell: pwsh
4039
run: |
40+
Write-Host "name=packageAndVersion::$(Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase)"
4141
Write-Host "::set-output name=packageAndVersion::$(Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase)"
42+
Write-Host "name=version::$((Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase) -replace '^.*?(\d.*)$','$1')"
4243
Write-Host "::set-output name=version::$((Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase) -replace '^.*?(\d.*)$','$1')"
44+
shell: pwsh
4345
- uses: actions/upload-artifact@v2
4446
with:
4547
name: Dotnet ${{ matrix.dotnet }}

System.Text.Json.Extensions/System.Text.Json.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<PackageId>System.Text.Json.Extensions</PackageId>
6-
<Version>1.0.6</Version>
6+
<Version>1.0.7</Version>
77
<Authors>TheConstructor</Authors>
88
<PackageDescription>This package tries to collect some extensions and converters that ease the usage of System.Text.Json.</PackageDescription>
99
<RepositoryUrl>https://github.com/TheConstructor/System.Text.Json.Extensions</RepositoryUrl>

0 commit comments

Comments
 (0)