From 0978341ede19bf3f4dbaac21f654edfed3ecac26 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Wed, 28 Feb 2024 20:41:47 +0100 Subject: [PATCH] feat(outputs): add major and minor version to output for raw tagging --- action/matrix_generator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action/matrix_generator.py b/action/matrix_generator.py index c91ff2a..62bfe57 100644 --- a/action/matrix_generator.py +++ b/action/matrix_generator.py @@ -39,7 +39,9 @@ def get_latest_versions(versions: List[str]) -> List[Dict[str, any]]: "version": version, "is_latest": is_latest, "is_latest_major": is_latest_major, + "major_version": f"{major}", "is_latest_minor": is_latest_minor, + "minor_version": f"{major}.{minor}", } version_objects.append(version_obj) @@ -56,6 +58,7 @@ def main(): value = json.dumps(version_objects, separators=(",", ":")) + print(value) with open(os.environ["GITHUB_OUTPUT"], "a") as fh: print(f"{OUTPUT}={value}", file=fh)