Skip to content

Commit

Permalink
Try again incrementing the ver number
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 22, 2024
1 parent e03d585 commit fc04cda
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/Package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ jobs:
txtversion=${verparts[0]}
fi
numver=$(echo $currversion | sed -E 's/v([^-]*)/\1/')
numverparts=($(echo $numver | tr "." "\n"))
len=${#numverparts[@]}
if [ $len -gt 2 ]; then
numver=${verparts[0]}.${verparts[1]}.${verparts[2]+1}
elif [ $len -eq 2 ]; then
numver=${verparts[0]}.${verparts[1]}.1
else
numver=${verparts[0]}.1.0
fi
if [ $isrrelease ]; then
numverparts=($(echo $numver | tr "." "\n"))
len=${#numverparts[@]}
if [ $len -gt 2 ]; then
numver=${numverparts[0]}.${numverparts[1]}.${numverparts[2]+1}
elif [ $len -eq 2 ]; then
numver=${numverparts[0]}.${numverparts[1]}.1
else
numver=${numverparts[0]}.1.0
fi
numver=$numver.dev$datestr
fi
echo numver=$numver >> $GITHUB_ENV
Expand Down

0 comments on commit fc04cda

Please sign in to comment.