Improve the check-versions job output
Drupal branch 10.4.x has just been created and the Check Versions job correctly fails to alert us. However, the information displayed in the log is misleading. Specifically is shows
Logic for CORE_SUPPORTED.
- [ERROR] 10.2.x is not a valid dev release.
Logic for CORE_NEXT_MINOR.
- [ERROR] 10.3.x is not a valid dev release.
See https://git.drupalcode.org/project/gitlab_templates/-/jobs/1483568
This is not only inaccurate, but it implies that the values for CORE_SUPPORTED and CORE_NEXT_MINOR need to be changed. In the current scenario where 10.3 does not have a full stable release, those two variables should not be changed (yet)
The reason for the misleading info is very simple, it's because the gather_releases() internal function quits early if a new dev release is found, and the $dev_releases and $security_releases arrays are never populated. Then later when being checked against, as the arrays are empty those messages are triggered.