mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +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
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user