fix(M00): 调整模块推送门禁顺序

This commit is contained in:
Codex
2026-06-16 14:25:09 +08:00
parent ae501398e2
commit 6052f34e16
5 changed files with 24 additions and 9 deletions
+9 -7
View File
@@ -22,11 +22,6 @@ Run-Step "workspace check" {
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-workspace.ps1
}
Run-Step "local tests" {
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/test-all.ps1
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-secrets.ps1
}
Run-Step "git preflight" {
$branch = & git branch --show-current
if ($branch -ne "main") {
@@ -41,9 +36,12 @@ Run-Step "git preflight" {
& git status --short --branch --untracked-files=all
}
Run-Step "stage files" {
Run-Step "stage declared files" {
if ($Paths.Count -gt 0) {
foreach ($path in $Paths) {
if (-not (Test-Path $path)) {
throw "Path not found: $path"
}
& git add -- $path
}
}
@@ -58,6 +56,11 @@ Run-Step "stage files" {
}
}
Run-Step "local tests" {
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/test-all.ps1
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-secrets.ps1
}
Run-Step "commit" {
if ($Amend) {
& git commit --amend --no-edit
@@ -82,4 +85,3 @@ Run-Step "remote verify" {
}
Write-Host "PASS: module pushed and verified."