mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 07:44:38 +01:00
Restore manual trimming of short sha (#22887)
This reverts "Let git handle short hashes automatically to avoid clashes"
This reverts commit 727ef731a3.
This commit is contained in:
committed by
GitHub
parent
307523610e
commit
61d9022dd7
@@ -41,7 +41,7 @@ fi
|
||||
|
||||
# Get the short SHA1
|
||||
export OPENRCT2_SHA1=$GITHUB_SHA
|
||||
export OPENRCT2_SHA1_SHORT=$(git rev-parse --short $GITHUB_SHA)
|
||||
export OPENRCT2_SHA1_SHORT=${OPENRCT2_SHA1::10}
|
||||
unset OPENRCT2_VERSION_EXTRA
|
||||
if [[ "$OPENRCT2_TAG" != "true" ]]; then
|
||||
export OPENRCT2_VERSION_EXTRA=$OPENRCT2_BRANCH-$OPENRCT2_SHA1_SHORT
|
||||
|
||||
@@ -24,7 +24,7 @@ sha1=$4
|
||||
branch=$5
|
||||
|
||||
if [ -n "$branch" ]; then
|
||||
versionextra=-$branch-$(git rev-parse --short $sha1)
|
||||
versionextra=-$branch-${sha1::10}
|
||||
fi
|
||||
filename=OpenRCT2-$version$versionextra-$flavour
|
||||
|
||||
|
||||
Reference in New Issue
Block a user