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: |
($subm_init_lines = git submodule init) | Out-Host
foreach ($subm_init_line in $subm_init_lines) {
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
}