Skip to content

Commit

Permalink
Add script to calculate next release
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinab25 committed Mar 2, 2022
1 parent a9e2f23 commit 9ad9fba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions calculate_next_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
major=$(grep 'FROM .*:.*' Dockerfile | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+');let minor=$(git tag | grep -E $major-[0-9]+ | cut -d- -f2 | sort -n | tail -n 1 )+1; echo $major-$minor

0 comments on commit 9ad9fba

Please sign in to comment.