-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (29 loc) · 1.19 KB
/
upstream pretest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Upstream pretest
on:
push:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
#concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# cancel-in-progress: false
#
permissions:
contents: write
jobs:
enmr-PRs:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- run: |
git submodule update --init --recursive
Write-Host (git submodule --quiet foreach 'echo $path').Length
Write-Host (git submodule --quiet foreach 'echo $path' 2>1).Length
git submodule --quiet foreach 'echo $path'
foreach ($subm_path in git submodule --quiet foreach 'echo $path') {
Write-Host $subm_path
Push-Location $subm_path
git config --add remote.origin.fetch "+refs/pull/*/merge:refs/remotes/origin/pr/*"
git fetch --dry-run origin
Pop-Location
}