Fix validation in release.yml by vbabanin · Pull Request #1706 · mongodb/mongo-java-driver

The changes have been tested in a forked repository.

Commits on main: View commits
5.5.x branch was created by GitHub Actions: View branches

Successful execution of the 5.5.0 GitHub Action: View run

Validation failures occurred as expected, since release.yml enforces version alignment with 5.6.0-SNAPSHOT after bumping to 5.6.0-SNAPSHOT. Tested the following versions:
5.5.7: View run
5.7.0: View run

JAVA-5867