mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 15:20:30 +00:00
Set explicit version in CIBUILD
This commit is contained in:
parent
3deadee42e
commit
54a742d576
@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Create artifact upload directory and set variables
|
name: Create artifact upload directory and set variables
|
||||||
command: |
|
command: |
|
||||||
mkdir /tmp/upload
|
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 'export CIBRANCH=$(git name-rev --name-only HEAD)' >> $BASH_ENV
|
||||||
echo '[ "$CIBRANCH" != "master" ] && export CIVERSION=$CIBRANCH-$CIBUILD || export CIVERSION=$CIBUILD' >> $BASH_ENV
|
echo '[ "$CIBRANCH" != "master" ] && export CIVERSION=$CIBRANCH-$CIBUILD || export CIVERSION=$CIBUILD' >> $BASH_ENV
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user