mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-12-20 18:01:22 +00:00
Use a proper version even when not publishing (#3)
This commit is contained in:
parent
010333d38d
commit
32e36abf78
2 changed files with 3 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
|||
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
||||
b97c0e9a9ec420d1c29a4236ff949cd01704896961f3d114c1bfb450dde52647 golang.sh
|
||||
b3f9247e566899d8d05147d69fb3d65df09d7eeae7287f242f169232df0a3108 golang.sh
|
||||
|
|
|
@ -13,7 +13,7 @@ function step() {
|
|||
echo "===> $@..."
|
||||
}
|
||||
|
||||
VERSION=$(git describe --tags --exact-match || echo "ghpublish__notags")
|
||||
VERSION=$(git describe --tags --always || echo "dev")
|
||||
PWD=$(pwd)
|
||||
godir=${PWD/${GOPATH}\/src\//}
|
||||
REPO=${REPO:-$(echo ${godir} | cut -d '/' -f 3)}
|
||||
|
@ -78,7 +78,7 @@ fi
|
|||
|
||||
step "Publish builds to Github"
|
||||
|
||||
if [[ ${VERSION} == "ghpublish__notags" ]]; then
|
||||
if ! git describe --tags --exact-match; then
|
||||
echo "No tag present, stopping build now."
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue