Skip to content

Commit

Permalink
NickAkhmetov/CAT-896 Fix push script logic (#3559)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov authored Oct 7, 2024
1 parent 507ecaa commit 6deb455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-cat-896.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix push script to correctly check latest minor version date.
2 changes: 1 addition & 1 deletion etc/build/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [[ -z "$MAJOR" ]]; then

TAGS=`git for-each-ref --sort=creatordate --format '%(refname) %(creatordate)' refs/tags | tac`
while read -r -d $'\n' TAG DATE; do
if [[ $TAG =~ v0\.([0-9]+)\.0$ ]]; then
if [[ $TAG =~ ([0-9]+)\.([0-9]+)\.0$ ]]; then
echo "Last minor tag: $TAG"
# Strip timezone info (last 6 characters)
DATE=${DATE%??????}
Expand Down

0 comments on commit 6deb455

Please sign in to comment.