Skip to content

Commit

Permalink
upstream pretest: fixup merge conflicts after packing
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Sep 14, 2024
1 parent b297b60 commit 5afe5d3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ jobs:
# expecting fast-forward when possible
Write-Host "--- Merging with ${b_core_main}:"
$need_commit_even_minimal = $false
git merge $b_core_main -m "[trivial] Merge $b_core_main into subm-pretest/..."
if (-not $?) {
Write-Host "----- Simple merge failed, trying to fix submodule conflict"
Expand All @@ -482,6 +483,7 @@ jobs:
git commit --no-edit
if (-not $?) { throw "git commit (after merge) failed" }
$need_commit_even_minimal = $true
}
git push
if (-not $?) { throw "git push failed" }
Expand Down Expand Up @@ -546,6 +548,17 @@ jobs:
git push
if (-not $?) { throw "git push failed" }
} elseif ($need_commit_even_minimal) {
Write-Host "- Found insignificant changes after merge conflict"
git diff
git commit -a --amend --no-edit
if (-not $?) { throw "git commit failed" }
git push --force-with-lease
if (-not $?) { throw "git push failed" }
} else {
Write-Host "- Didn't find any significant changes"
}
$core_pretest_sha = git rev-parse HEAD
Expand Down

0 comments on commit 5afe5d3

Please sign in to comment.