diff --git a/.github/scripts/update_versions.py b/.github/scripts/update_versions.py index 61c7adbdb4..843e80a3a6 100644 --- a/.github/scripts/update_versions.py +++ b/.github/scripts/update_versions.py @@ -5,7 +5,7 @@ from github import Github def update_latest_versions(): version = os.environ["GITHUB_REF"].split("/")[-1] - if "rc" not in version: + if "rc" in version: return False with open("latest-versions.json", "r") as f: @@ -49,4 +49,4 @@ if __name__ == "__dev__": should_create_pr = update_latest_versions() if should_create_pr: create_pr() - \ No newline at end of file +