Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
amkisko committed Aug 30, 2023
1 parent 8bb495b commit 488ff04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ e() {
eval "$1"
}

if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
echo -e "\033[1;31mgit working directory not clean, please commit your changes first \033[0m"
exit 1
fi

GEM_NAME="timely-app"
VERSION=$(grep -Eo "VERSION\s*=\s*'.+'" lib/timely-app.rb | grep -Eo "[0-9.]{5,}")
GEM_FILE="$GEM_NAME-$VERSION.gem"
Expand Down

0 comments on commit 488ff04

Please sign in to comment.