Skip to content

Commit

Permalink
+57
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 18, 2024
1 parent 5a630bd commit f37c76d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ jobs:
if ($subm_pretest_pr_nums -or $core_pretest_pr_nums) {
$remove_list += @{
'repo' = "SunSerega/$subm_name";
'org_repo' = "$subm_owner/$subm_name";
'fork_repo' = "SunSerega/$subm_name";
'subm_pretest_pr_nums' = $subm_pretest_pr_nums -join ',';
'core_pretest_pr_nums' = $core_pretest_pr_nums -join ',';
}
Expand Down Expand Up @@ -173,7 +174,7 @@ jobs:
- name: checkout subm fork
uses: actions/checkout@main
with:
repository: ${{ matrix.remove-data.repo }}
repository: ${{ matrix.remove-data.fork_repo }}
token: ${{ secrets.POCGL_pretest_upstream_PAT }}
sparse-checkout-cone-mode: false
sparse-checkout: '<NOTHING>'
Expand All @@ -187,7 +188,8 @@ jobs:
return $s -split ','
}
$repo = '${{ matrix.remove-data.repo }}'
$org_repo = '${{ matrix.remove-data.org_repo }}'
$fork_repo = '${{ matrix.remove-data.fork_repo }}'
$subm_pretest_pr_nums = Split-OrEmpty '${{ matrix.remove-data.subm_pretest_pr_nums }}'
$core_pretest_pr_nums = Split-OrEmpty '${{ matrix.remove-data.core_pretest_pr_nums }}'
Expand All @@ -199,11 +201,12 @@ jobs:
$main_repo_url = '${{ github.server_url }}/${{ github.repository }}'
Write-Host "fetching commits of: $main_repo_url"
git clone --filter=tree:0 $main_repo_url
git branch -r
$core_removed_pr_nums = @()
foreach ($pr_num in $core_pretest_pr_nums) {
Write-Host "Checking if subm-pretest branch for PR $pr_num is trivial"
$branch_name = "subm-pretest/$repo/$pr_num"
$branch_name = "subm-pretest/$org_repo/$pr_num"
Write-Host $branch_name
$is_trivial = $true
foreach ($commit_name in git show --pretty=format:"%s" -s "HEAD..origin/$branch_name") {
Expand Down

0 comments on commit f37c76d

Please sign in to comment.