mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Fix merge in progress detection
This commit is contained in:
8
.github/workflows/rebuild.yml
vendored
8
.github/workflows/rebuild.yml
vendored
@@ -55,8 +55,12 @@ jobs:
|
||||
git fetch origin "$BASE_BRANCH"
|
||||
|
||||
# Allow merge conflicts in `lib`, since rebuilding should resolve them.
|
||||
git merge "origin/$BASE_BRANCH" || echo "Merge conflicts detected, continuing."
|
||||
MERGE_RESULT=$?
|
||||
if git merge "origin/$BASE_BRANCH"; then
|
||||
MERGE_RESULT=0
|
||||
else
|
||||
MERGE_RESULT=$?
|
||||
echo "Merge conflicts detected, continuing."
|
||||
fi
|
||||
|
||||
if [ "$MERGE_RESULT" -ne 0 ]; then
|
||||
echo "merge-in-progress=true" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user