summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-10 19:55:20 +0300
committerAndrew Dolgov <[email protected]>2023-04-10 19:55:20 +0300
commit15c9dbe270b7d96edb4ef436d2cab07ac8fcc873 (patch)
tree0fa4103a1c4b586fe5b8cdf46f031c94f5dac669
parent2420feb91fba0437441ebee381d0513c4d80bccd (diff)
use short sha CI envvar for version.json compatibility
-rw-r--r--classes/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/config.php b/classes/config.php
index 8e202274f..3858825ae 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -327,7 +327,7 @@ class Config {
$this->version["version"] = sprintf("%s-%s-%s", getenv("BUILD_TIMESTAMP"), getenv("CI_COMMIT_BRANCH"), getenv("CI_COMMIT_SHORT_SHA"));
$this->version["timestamp"] = strtotime(getenv("CI_COMMIT_TIMESTAMP"));
- $this->version["commit"] = getenv("CI_COMMIT_SHA");
+ $this->version["commit"] = getenv("CI_COMMIT_SHORT_SHA");
$this->version["status"] = 0;
} else if (PHP_OS === "Darwin") {