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

This commit is contained in:
Lucas Schwiderski 2025-03-12 11:52:53 +01:00
parent beba47f340
commit d15f533e19
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

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