-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 1.15 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
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: |
$subm_init_lines = git submodule init
$subm_init_lines | Out-Host
foreach ($subm_init_line in $subm_init_lines) {
Write-Host 'subm_init_line:' $subm_init_line
if ($subm_init_line -notmatch '^Submodule ''(.+)'' ') { throw $subm_init_line }
Write-Host ($subm_path = $Matches[1])
Push-Location $subm_path
git config --add remote.origin.fetch "+refs/pull/*/merge:refs/remotes/origin/pr/*"
git fetch --dry-run origin
Pop-Location
}