Skip to content

Commit 6fb1c2a

Browse files
committed
Fix merge in progress detection
1 parent 4472004 commit 6fb1c2a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/rebuild.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ jobs:
5555
git fetch origin "$BASE_BRANCH"
5656
5757
# Allow merge conflicts in `lib`, since rebuilding should resolve them.
58-
git merge "origin/$BASE_BRANCH" || echo "Merge conflicts detected, continuing."
59-
MERGE_RESULT=$?
58+
if git merge "origin/$BASE_BRANCH"; then
59+
MERGE_RESULT=0
60+
else
61+
MERGE_RESULT=$?
62+
echo "Merge conflicts detected, continuing."
63+
fi
6064
6165
if [ "$MERGE_RESULT" -ne 0 ]; then
6266
echo "merge-in-progress=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)