Skip to content

Commit

Permalink
Merge pull request #11 from creative-commoners/pulls/1.0/single-major
Browse files Browse the repository at this point in the history
FIX Skip running CI on cycle if only a single major
  • Loading branch information
GuySartorelli authored Feb 15, 2024
2 parents 09a4e78 + 4020fe4 commit 467a12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 467a12c

Please sign in to comment.