From 4020fe4f4c91b61bc8330c5bec9d7e162de8d14e Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 15 Feb 2024 15:47:28 +1300 Subject: [PATCH] FIX Skip running CI on cycle if only a single major --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 07e8bad..f446f17 100644 --- a/action.yml +++ b/action.yml @@ -61,8 +61,8 @@ runs: major_branch=$(echo "$major_branches" | head -1) elif [[ $major_type == "previous" ]]; then if (( $major_branches_count < 2 )); then - echo "Only one major branch found" - exit 1 + echo "Only one major branch found, not running CI on this cycle - will run on next cycle" + exit 0 fi major_branch=$(echo "$major_branches" | head -2 | tail -1) fi