Add used WordPress versions to the commit message
[MAILPOET-6097]
This commit is contained in:
committed by
Rostislav Wolný
parent
8e3f7faa0e
commit
318424f0c4
11
.github/workflows/scripts/helpers.php
vendored
11
.github/workflows/scripts/helpers.php
vendored
@@ -69,3 +69,14 @@ function fetchGitHubTags($repo, $token) {
|
||||
|
||||
return array_column($data, 'name');
|
||||
}
|
||||
|
||||
function saveVersionsToFile($latestVersion, $previousVersion, $fileName): void {
|
||||
$value = "";
|
||||
if ($latestVersion) {
|
||||
$value .= "- latest version: {$latestVersion}\n";
|
||||
}
|
||||
if ($previousVersion) {
|
||||
$value .= "- previous version: {$previousVersion}\n";
|
||||
}
|
||||
file_put_contents("/tmp/{$fileName}", $value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user