ohctech_p8/mc/vendor/microsoft/microsoft-graph/scripts/BumpStableSdkVersion.php
2024-10-16 19:18:52 +05:30

17 lines
516 B
PHP

<?php
include_once 'SdkVersionUtils.php';
const GRAPH_CONSTANTS_FILEPATH = "./src/Core/GraphConstants.php";
$packagistVersion = getLatestPackagistVersion();
if (!$packagistVersion) {
echo "Failed to fetch latest stable sdk version";
return;
}
$bumpedSdkVersion = incrementVersion($packagistVersion);
echo "Version after increment: {$bumpedSdkVersion}\n";
updateGraphConstants(GRAPH_CONSTANTS_FILEPATH, $bumpedSdkVersion);
updateReadme($bumpedSdkVersion);
updateDocs($packagistVersion, $bumpedSdkVersion);