mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Exclude 3.0.0 tag from release command [skip ci]
This commit is contained in:
@ -1016,6 +1016,13 @@ class ReleaseController extends Controller
|
|||||||
throw new Exception('Command "git tag" failed with code ' . $ret);
|
throw new Exception('Command "git tag" failed with code ' . $ret);
|
||||||
}
|
}
|
||||||
rsort($tags, SORT_NATURAL); // TODO this can not deal with alpha/beta/rc...
|
rsort($tags, SORT_NATURAL); // TODO this can not deal with alpha/beta/rc...
|
||||||
|
|
||||||
|
// exclude 3.0.0-alpha1 tag
|
||||||
|
if (($key = array_search('3.0.0-alpha1', $tags, true)) !== false)
|
||||||
|
{
|
||||||
|
unset($tags[$key]);
|
||||||
|
}
|
||||||
|
|
||||||
$versions[$ext] = reset($tags);
|
$versions[$ext] = reset($tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user