Skip to content
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
}