Unverified Commit c51d97c8 authored by Aki Sasaki's avatar Aki Sasaki Committed by GitHub
Browse files

support-rc-versions (#16929) (#16930)

parent 8b4b9bde
......@@ -48,6 +48,9 @@ def get_decision_parameters(graph_config, parameters):
elif version.is_release:
next_version = version.bump("patch_number")
release_type = "release"
elif version.is_release_candidate:
next_version = version.bump("release_candidate_number")
release_type = "release"
else:
raise ValueError("Unsupported version type: {}".format(version.version_type))
......
......@@ -155,6 +155,8 @@ def release_promotion_action(parameters, graph_config, input, task_group_id, tas
release_type = "beta"
elif version.is_release:
release_type = "release"
elif version.is_release_candidate:
release_type = "release"
else:
raise ValueError("Unsupported version type: {}".format(version.version_type))
parameters['release_type'] = release_type
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment