Skip to content

Commit

Permalink
Move up check for draft releases
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 committed Jan 11, 2022
1 parent 61135bc commit 39af149
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/update_deleted_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,14 @@ function usage($command)
// Get the latest release before current release build version
foreach ($gitHubReleases as $gitHubRelease)
{
if ($gitHubRelease->draft)
{
continue;
}

if (version_compare(substr($gitHubRelease->tag_name, 0, strlen($currentMinorVersion)), $currentMinorVersion, '=')
&& version_compare($gitHubRelease->tag_name, $currentVersionBuild, '<'))
{
if ($gitHubRelease->draft)
{
continue;
}

foreach ($gitHubRelease->assets as $asset)
{
if (preg_match('/^Joomla_.*-Full_Package\.zip$/', $asset->name) === 1)
Expand Down

0 comments on commit 39af149

Please sign in to comment.