Skip to content

Commit

Permalink
+84
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 18, 2024
1 parent cc20bb8 commit bfcf518
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ jobs:
Write-Host "Updating subm fork..."
Push-Location './fork'
git remote add 0_official "[email protected]:${org_repo}.git"
git fetch
$fork_main_branch_name = 'custom'
Expand All @@ -188,6 +189,7 @@ jobs:
Write-Host "Branch for PR $pr_num exists. Merging with ${fork_main_branch_name}:"
git checkout $fork_branch_name
git merge $fork_main_branch_name
if (-not $?) { throw "git merge failed" }
git push
} else {
Write-Host "Branch for PR $pr_num doesn't exist. Creating:"
Expand All @@ -197,7 +199,9 @@ jobs:
Write-Host "Merging latest commits from PR $pr_num"
git merge "refs/pull/$pr_num/merge"
if (-not $?) { throw "git merge failed" }
git push
if (-not $?) { throw "git push failed" }
Pop-Location
Expand All @@ -214,12 +218,14 @@ jobs:
Write-Host "Branch for PR $pr_num exists. Merging with ${core_main_branch_name}:"
git checkout $core_branch_name
git merge $core_main_branch_name -m "[auto pretest] Merge $core_branch_name into subm-pretest/... branch"
if (-not $?) { throw "git merge failed" }
git push
} else {
Write-Host "Branch for PR $pr_num doesn't exist. Creating:"
git branch $core_branch_name
git push --set-upstream origin $core_branch_name
}
git push -f # TODO REMOVE!!!!!
& .\DeleteAllTemp.bat NoPause | Out-Null
Expand All @@ -232,6 +238,7 @@ jobs:
git add -A
git commit -m "[auto pretest] test changes"
git push
if (-not $?) { throw "git push failed" }
Pop-Location
Expand Down

0 comments on commit bfcf518

Please sign in to comment.