Make setenv consume OpenRCT2 version from ci.yml

This commit is contained in:
Michał Janiszewski 2024-09-27 23:16:01 +02:00
parent 727ef731a3
commit 4eb9ffadde

View file

@ -6,7 +6,7 @@ set -e
# It should be dot sourced into your environment # It should be dot sourced into your environment
if [[ "$GITHUB_ACTIONS" != "true" ]]; then if [[ "$GITHUB_ACTIONS" != "true" ]]; then
export OPENRCT2_BUILD_SERVER=$(hostname) export OPENRCT2_BUILD_SERVER=$(hostname)
export OPENRCT2_VERSION=0.4.14 export OPENRCT2_VERSION=$(grep 'OPENRCT2_VERSION:' openrct2/.github/workflows/ci.yml | sed 's/.*OPENRCT2_VERSION: *//;s/".*//')
GITHUB_REF=$(git rev-parse --symbolic-full-name HEAD) GITHUB_REF=$(git rev-parse --symbolic-full-name HEAD)
GITHUB_SHA=$(git rev-parse HEAD) GITHUB_SHA=$(git rev-parse HEAD)
fi fi