fix:修正本地构建工作流参数传递

This commit is contained in:
LoveLosita
2026-05-09 19:16:04 +08:00
parent 689ce60ab4
commit e79cfcc4b6

View File

@@ -107,11 +107,14 @@ jobs:
Set-StrictMode -Version Latest Set-StrictMode -Version Latest
Set-Location $env:SMARTFLOW_WORKTREE Set-Location $env:SMARTFLOW_WORKTREE
$packArgs = @("-AppTag", $env:APP_TAG, "-PlanFile", "deploy\release-plan.env") $packArgs = @{
if ($env:INPUT_INCLUDE_INFRA -eq "true") { AppTag = $env:APP_TAG
$packArgs += "-IncludeInfra" PlanFile = "deploy\release-plan.env"
} }
.\deploy\docker-pack.ps1 @packArgs if ($env:INPUT_INCLUDE_INFRA -eq "true") {
$packArgs["IncludeInfra"] = $true
}
& .\deploy\docker-pack.ps1 @packArgs
- name: Stage release directory - name: Stage release directory
shell: powershell shell: powershell