Skip to content

Commit 1567add

Browse files
committed
fix: gracefully handle merge conflicts in main to feature branches action
1 parent 0179596 commit 1567add

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/actions/merge-main/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ runs:
9090
echo "...switching to branch: $branch"
9191
git switch "$branch"
9292
echo "...merging main"
93-
git merge -m "misc: merge from main" origin/main
94-
if [ $? -eq 0 ]; then
93+
if git merge -m "misc: merge from main" origin/main; then
9594
echo "...pushing to origin"
9695
git push origin "$branch"
9796
else

0 commit comments

Comments
 (0)