Skip to content

Commit 0be9290

Browse files
authored
Typecast OLDEST_SUPPORTED_MAJOR_VERSION when defined
1 parent 658e3c6 commit 0be9290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/release-branches/release-branches.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
with open(os.path.join(grandparent_dir, 'releases.ini')) as stream:
1414
config.read_string('[default]\n' + stream.read())
1515

16-
OLDEST_SUPPORTED_MAJOR_VERSION = config['default']['OLDEST_SUPPORTED_MAJOR_VERSION']
16+
OLDEST_SUPPORTED_MAJOR_VERSION = int(config['default']['OLDEST_SUPPORTED_MAJOR_VERSION'])
1717

1818
def main():
1919

@@ -46,7 +46,7 @@ def main():
4646
if consider_backports:
4747
for i in range(int(major_version.strip("v"))-1, 0, -1):
4848
branch_name = f"releases/v{i}"
49-
if i >= int(OLDEST_SUPPORTED_MAJOR_VERSION):
49+
if i >= OLDEST_SUPPORTED_MAJOR_VERSION:
5050
backport_target_branches.append(branch_name)
5151

5252
f.write("backport_target_branches="+json.dumps(backport_target_branches)+"\n")

0 commit comments

Comments
 (0)