1
0
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:
Michał Janiszewski
2024-10-03 07:28:09 +02:00
committed by GitHub
parent 307523610e
commit 61d9022dd7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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