From 89e591ae10d1439717bb51cf4d7f71ed584461b6 Mon Sep 17 00:00:00 2001 From: selman koc <64414348+skoc10@users.noreply.github.com> Date: Tue, 2 May 2023 10:38:43 +0300 Subject: [PATCH] Update update_versions.py --- .github/scripts/update_versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +