Fix getting version from temporary files in GH action

[MAILPOET-6097]
This commit is contained in:
Jan Lysý
2024-06-21 18:37:20 +02:00
committed by Jan Lysý
parent 46ad169439
commit f4adfaf732
7 changed files with 41 additions and 36 deletions

View File

@@ -4,7 +4,7 @@ require_once __DIR__ . '/helpers.php';
$downloadCommand = 'download:woo-commerce-zip';
$configParameterName = 'woo_core_version';
$versionsFilename = 'woocommerce_versions.txt';
$versionsFilenameSuffix = 'woocommerce_version.txt';
/**
* We get the official WooCommerce versions from the WordPress API.
@@ -42,4 +42,4 @@ if ($previousVersion) {
echo "No previous version found.\n";
}
saveVersionsToFile($latestVersion, $previousVersion, $versionsFilename);
saveVersionsToFiles($latestVersion, $previousVersion, $versionsFilenameSuffix);