Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
Check failure on line 25 in .github/workflows/upstream pretest.yaml GitHub Actions / Upstream pretestInvalid workflow file
|
||
sparse-checkout: | | ||
.gitmodules | ||
- name: make exec list | ||
run: | | ||
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 }} | ||