1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

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
if [[ "$GITHUB_ACTIONS" != "true" ]]; then
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_SHA=$(git rev-parse HEAD)
fi