Compare commits

...

2 commits

Author SHA1 Message Date
4d0762c0ba
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
Reviewed-on: #207
2025-03-12 12:15:30 +00:00
d15f533e19
Fix branch name in package version
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
2025-03-12 11:52:53 +01:00

View file

@ -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'"