Skip to content
name: Upstream pretest
on:
push:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
enmr-PRs:
runs-on: windows-latest
steps:
-
name: git config
run: |
git config --global core.autocrlf false
git config --global --add url.https://github.com/.insteadOf "[email protected]:"
- name: checkout
uses: actions/checkout@main
sparse-checkout-cone-mode: false
sparse-checkout: |
.gitmodules
- name: make exec list
run: |

Check failure on line 31 in .github/workflows/upstream pretest.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/upstream pretest.yaml

Invalid workflow file

You have an error in your yaml syntax on line 31
foreach ($subm_key in git config --file .gitmodules --name-only --get-regexp '^submodule\..+\.url$') {
$subm_url = git config --file .gitmodules --get $subm_key
Write-Host "URL: $subm_url"
foreach ($ref_l in git ls-remote $remote_url 'refs/pull/*/merge') {
if ($ref_l -notmatch '^[0-9a-f]+\s+refs/pull/(\d+)/merge$') {
throw "Unexpected format: $ref_l"
}
$pr_num = $Matches[1]
Write-Host "- Found PR $pr_num"
}
}
pretest-each:
runs-on: windows-latest
steps:
- name: git config
run: |
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "[email protected]"
- name: checkout
uses: actions/checkout@main
with:
submodules: 'true'
token: ${{ secrets.PAT_TOKEN }}