Skip to content

Commit

Permalink
Try 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 f9f03a2 commit e03d585
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/Package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,20 @@ 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
numver=$numver.dev$datestr
fi
echo numver=$numver >> $GITHUB_ENV
version=$numver
version=v$numver
echo version=$version >> $GITHUB_ENV
- name: Update Version Number in python files
Expand Down

0 comments on commit e03d585

Please sign in to comment.