Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsilvamartin authored Feb 18, 2024
1 parent 62901eb commit b948597
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
IFS='.' read -r -a version_parts <<< "$latest_version"
echo "Version parts array: ${version_parts[@]}"
if [ "${#version_parts[@]}" -lt 3 ]; then
echo "Error: Insufficient version parts."
exit 1
fi
((version_parts[2]++))
echo "Incremented version parts array: ${version_parts[@]}"
new_version="${version_parts[0]}.${version_parts[1]}.${version_parts[2]}"
Expand Down

0 comments on commit b948597

Please sign in to comment.