context is great again, fixes to connectors
This commit is contained in:
16
update-config-version.php
Normal file
16
update-config-version.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
$fileName = "./config.json";
|
||||
|
||||
$string = file_get_contents($fileName);
|
||||
$json = json_decode($string, TRUE);
|
||||
|
||||
$newVersion = trim(shell_exec("git describe --tags | head"));
|
||||
|
||||
$json["version"] = $newVersion;
|
||||
|
||||
//print_r($json);
|
||||
|
||||
$newConfig = json_encode($json, JSON_PRETTY_PRINT);
|
||||
|
||||
file_put_contents($fileName, $newConfig);
|
Reference in New Issue
Block a user