Skip to content

Commit

Permalink
[#113616255] publish new version only if version number has changed i…
Browse files Browse the repository at this point in the history
…n redpen.php
  • Loading branch information
Anton Keks, Dmitri Ess committed Feb 12, 2016
1 parent 9fed9c1 commit a729c74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ else
svn update
fi

if ! svn diff redpen.php | fgrep "+Version: "; then
echo "Version haven't changed, not publishing to $SVN_REPO"
exit 0
fi

GIT_REV=`git rev-parse --short HEAD`
UNTRACKED_IN_SVN=`svn status | grep '^\?' | sed 's/^\? //'`

Expand Down

0 comments on commit a729c74

Please sign in to comment.