Skip to content

Commit

Permalink
try to fix patch version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-drewery committed Dec 18, 2023
1 parent 648fb14 commit a474d26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
echo "Major and minor version: $majorMinor"
# Fetch latest patch version from NuGet
latestPatch=$(nuget list $packageName -PreRelease | grep $majorMinor | sort -V | tail -n1 | cut -d'.' -f3 | cut -d' ' -f1)
latestPatch=$(nuget list $packageName -PreRelease | grep "$majorMinor\." | sort -V | tail -n1 | awk -F'.' '{print $3}' | awk '{print $1}')
echo "Latest patch version from NuGet: $latestPatch"
if [ -z "$latestPatch" ]; then
latestPatch=0
Expand Down

0 comments on commit a474d26

Please sign in to comment.