Merge pull request 'Fix branch name in package version' (#207) from issue/205 into master
All checks were successful
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
All checks were successful
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
Reviewed-on: #207
This commit is contained in:
commit
4d0762c0ba
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ if [ -n "$PR" ]; then
|
||||||
ref="pr-$(echo "$PR" | jq '.number')-$(git rev-parse --short "$(cat .git/ref || echo "HEAD")" 2>/dev/null || echo 'manual')"
|
ref="pr-$(echo "$PR" | jq '.number')-$(git rev-parse --short "$(cat .git/ref || echo "HEAD")" 2>/dev/null || echo 'manual')"
|
||||||
else
|
else
|
||||||
ref=$(cat .git/ref || echo "HEAD")
|
ref=$(cat .git/ref || echo "HEAD")
|
||||||
ref=$(git rev-parse --abbrev-ref $ref)-$(git rev-parse --short $ref)
|
branch=$(git rev-parse --abbrev-ref $ref)
|
||||||
|
if [ -z "$branch" ]; then
|
||||||
|
branch=$(cat .git/ref)
|
||||||
|
fi
|
||||||
|
ref=${branch}-$(git rev-parse --short $ref)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
title "Version: '$ref'"
|
title "Version: '$ref'"
|
||||||
|
|
Loading…
Add table
Reference in a new issue