5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 09:30:28 +00:00

Set explicit version in CIBUILD

This commit is contained in:
Neil Alexander 2018-03-04 10:58:10 +00:00
parent 3deadee42e
commit 54a742d576

View File

@ -15,7 +15,7 @@ jobs:
name: Create artifact upload directory and set variables
command: |
mkdir /tmp/upload
echo 'export CIBUILD=0.$(git rev-list HEAD --count | xargs printf "%04d")' >> $BASH_ENV
echo 'export CIBUILD=0.1.$(git rev-list HEAD --count | xargs printf "%04d")' >> $BASH_ENV
echo 'export CIBRANCH=$(git name-rev --name-only HEAD)' >> $BASH_ENV
echo '[ "$CIBRANCH" != "master" ] && export CIVERSION=$CIBRANCH-$CIBUILD || export CIVERSION=$CIBUILD' >> $BASH_ENV