Skip to content

Commit

Permalink
chore(sdk-dotnet): Update dotnet version bump logic
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Nov 4, 2024
1 parent 80170d7 commit 1d26e29
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ jobs:
id: increment_version
shell: pwsh
run: |
$xmlPath = ".\*.csproj"
$xml = [xml](Get-Content $xmlPath)
$projectFile = Get-ChildItem -Path . -Filter *.csproj | Select-Object -First 1
if (-not $projectFile) {
throw "No .csproj file found in current directory"
}
$xml = [xml](Get-Content $projectFile.FullName)
$currentVersion = $xml.Project.PropertyGroup.Version
if (-not $currentVersion) {
Expand Down

0 comments on commit 1d26e29

Please sign in to comment.