File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -e
4- set -x
54
65if (( "$# " != 1 ))
76then
@@ -17,6 +16,10 @@ CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
1716
1817for REMOTE in origin psr-queue stomp amqp-ext sqs fs redis dbal null enqueue simple-client enqueue-bundle job-queue test
1918do
19+ echo " "
20+ echo " "
21+ echo " Releasing $REMOTE " ;
22+
2023 TMP_DIR=" /tmp/enqueue-repo"
2124 REMOTE_URL=` git remote get-url $REMOTE `
2225
2528
2629 (
2730 cd $TMP_DIR ;
28- git clone $REMOTE_URL . --depth=10
31+ git clone $REMOTE_URL . --depth=200
2932 git checkout $CURRENT_BRANCH ;
30- git tag $1 -s -m " Release $1 "
31- git push origin --tags
33+ LAST_RELEASE=$( git tag -l [0-9].* | tail -n1)
34+
35+ echo " Last release $LAST_RELEASE " ;
36+
37+ CHANGES_SINCE_LAST_RELEASE=$( git log $LAST_RELEASE ...master | xargs echo -n)
38+ if [[ ! -z " $CHANGES_SINCE_LAST_RELEASE " ]]; then
39+ echo " There are changes since last release. Releasing $1 " ;
40+
41+ git tag $1 -s -m " Release $1 "
42+ git push origin --tags
43+ else
44+ echo " No change since last release." ;
45+ fi
3246 )
3347done
You can’t perform that action at this time.
0 commit comments