Skip to content

Commit

Permalink
+21
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 16, 2024
1 parent 4845760 commit 2b916ab
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
# Get-Service ssh-agent
# Get-Service ssh-agent | Select StartType
where.exe start-ssh-agent
start-ssh-agent
Write-Host "ssh:"
where.exe ssh
Write-Host "ssh-add:"
Expand All @@ -34,9 +37,6 @@ jobs:
Start-Service -Name ssh-agent
git config --global core.sshCommand "'C:\\Windows\\System32\\OpenSSH\\ssh.exe'"
# where.exe start-ssh-agent
# start-ssh-agent
# Set Key File Variable:
New-Variable -Name Key -Value "$env:UserProfile\.ssh\id_rsa"
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
foreach ($subm_key in git config --file .gitmodules --name-only --get-regexp '^submodule\..+\.url$') {
$subm_url = git config --file .gitmodules --get $subm_key
# Write-Host "URL: $subm_url"
Write-Host "URL: $subm_url"
$pr_nums = @()
foreach ($ref_l in git ls-remote $subm_url 'refs/pull/*/merge') {
Expand All @@ -96,7 +96,7 @@ jobs:
}
$pr_num = $Matches[1]
# Write-Host "- Found PR $pr_num"
Write-Host "- Found PR $pr_num"
$pr_nums += $pr_num
$exec_list += "$pr_num;$subm_url"
Expand All @@ -116,6 +116,7 @@ jobs:
throw "Unexpected format: $ref_l"
}
$pr_num = $Matches[1]
Write-Host "- Found pretest branch for PR $pr_num"
if ($pr_nums -contains $pr_num) { continue }
Write-Host "pretest branch for PR $pr_num is no longer needed"
Expand Down

0 comments on commit 2b916ab

Please sign in to comment.