Skip to content

Commit bf301d1

Browse files
committed
Finish merge if in progress
1 parent 2ee230f commit bf301d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/rebuild.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ jobs:
7373
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
7474
git config --global user.name "github-actions[bot]"
7575
git add --all
76-
git commit -m "Rebuild"
76+
# If the merge originally had conflicts, finish the merge.
77+
# Otherwise, just commit the changes.
78+
if git rev-parse --verify MERGE_HEAD >/dev/null 2>&1; then
79+
git merge --continue
80+
else
81+
git commit -m "Rebuild"
82+
fi
7783
git push origin "HEAD:$BRANCH"
7884
echo "changes=true" >> $GITHUB_OUTPUT
7985
fi

0 commit comments

Comments
 (0)