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 b948597 commit f3c9494
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@ 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
echo "Printing environment variables:"
printenv
echo "Exiting script with success."
((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 f3c9494

Please sign in to comment.