featurebase/.github/workflows/version.sh
2022-11-01 11:08:36 -04:00

4 lines
No EOL
169 B
Bash
Executable file

current=$(git describe --tags | grep -Eo '[0-9]*?\.[0-9]*?\.[0-9]*')
array=($(echo $current | tr '.' '\n'))
array[1]=$((array[1]+1))
echo $(IFS="." ; echo "${array[*]}")