File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 8080 TARGET_VERSION="1.0.0"
8181 echo "Starting with version 1.0.0 from main branch"
8282
83+ set +e # Allow check_branch_merged to return non-zero without failing
8384 check_branch_merged "$TARGET_VERSION"
8485 result=$?
86+ set -e # Re-enable error exit
8587
8688 if [ $result -eq 0 ]; then
8789 # Branch exists and is merged - bump to next version
@@ -103,8 +105,10 @@ jobs:
103105 TARGET_VERSION="${NEW_MAJOR}.0.0"
104106 echo "Bumped version from $CURRENT to $TARGET_VERSION"
105107
108+ set +e # Allow check_branch_merged to return non-zero without failing
106109 check_branch_merged "$TARGET_VERSION"
107110 result=$?
111+ set -e # Re-enable error exit
108112
109113 if [ $result -eq 0 ]; then
110114 # Bumped version branch exists and is merged - bump again
Original file line number Diff line number Diff line change 8080 TARGET_VERSION="1.0.0"
8181 echo "Starting with version 1.0.0 from main branch"
8282
83+ set +e # Allow check_branch_merged to return non-zero without failing
8384 check_branch_merged "$TARGET_VERSION"
8485 result=$?
86+ set -e # Re-enable error exit
8587
8688 if [ $result -eq 0 ]; then
8789 # Branch exists and is merged - bump to next version
@@ -103,8 +105,10 @@ jobs:
103105 TARGET_VERSION="${MAJOR}.${NEW_MINOR}.0"
104106 echo "Bumped version from $CURRENT to $TARGET_VERSION"
105107
108+ set +e # Allow check_branch_merged to return non-zero without failing
106109 check_branch_merged "$TARGET_VERSION"
107110 result=$?
111+ set -e # Re-enable error exit
108112
109113 if [ $result -eq 0 ]; then
110114 # Bumped version branch exists and is merged - bump again
Original file line number Diff line number Diff line change 8080 TARGET_VERSION="1.0.0"
8181 echo "Starting with version 1.0.0 from main branch"
8282
83+ set +e # Allow check_branch_merged to return non-zero without failing
8384 check_branch_merged "$TARGET_VERSION"
8485 result=$?
86+ set -e # Re-enable error exit
8587
8688 if [ $result -eq 0 ]; then
8789 # Branch exists and is merged - bump to next version
@@ -103,8 +105,10 @@ jobs:
103105 TARGET_VERSION="${MAJOR}.${MINOR}.${NEW_PATCH}"
104106 echo "Bumped version from $CURRENT to $TARGET_VERSION"
105107
108+ set +e # Allow check_branch_merged to return non-zero without failing
106109 check_branch_merged "$TARGET_VERSION"
107110 result=$?
111+ set -e # Re-enable error exit
108112
109113 if [ $result -eq 0 ]; then
110114 # Bumped version branch exists and is merged - bump again
You can’t perform that action at this time.
0 commit comments