Skip to content

Commit

Permalink
Use a proper version even when not publishing (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luzifer committed Feb 5, 2019
1 parent 010333d commit 32e36ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
b97c0e9a9ec420d1c29a4236ff949cd01704896961f3d114c1bfb450dde52647 golang.sh
b3f9247e566899d8d05147d69fb3d65df09d7eeae7287f242f169232df0a3108 golang.sh
4 changes: 2 additions & 2 deletions golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 32e36ab

Please sign in to comment.