mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:00:54 +00:00
ci: fix release-path docker rerun commands
This commit is contained in:
@@ -77,6 +77,10 @@ function shellQuote(value) {
|
||||
return `'${String(value).replaceAll("'", "'\\''")}'`;
|
||||
}
|
||||
|
||||
function laneNeedsReleasePath(lane) {
|
||||
return /^bundled-channel(?:-|$)/u.test(lane);
|
||||
}
|
||||
|
||||
function maybeGhcrImage(value) {
|
||||
return typeof value === "string" && value.startsWith("ghcr.io/") ? value : "";
|
||||
}
|
||||
@@ -114,15 +118,18 @@ function commonReuseInputs(entries) {
|
||||
}
|
||||
|
||||
function ghWorkflowCommand(lanes, ref, workflow, reuseInputs = {}) {
|
||||
const workflowRef = process.env.OPENCLAW_DOCKER_E2E_WORKFLOW_REF || process.env.GITHUB_REF_NAME;
|
||||
const releasePath = lanes.some(laneNeedsReleasePath);
|
||||
const fields = [
|
||||
"gh workflow run",
|
||||
shellQuote(workflow),
|
||||
...(workflowRef ? ["--ref", shellQuote(workflowRef)] : []),
|
||||
"-f",
|
||||
`ref=${shellQuote(ref)}`,
|
||||
"-f",
|
||||
"include_repo_e2e=false",
|
||||
"-f",
|
||||
"include_release_path_suites=false",
|
||||
`include_release_path_suites=${releasePath ? "true" : "false"}`,
|
||||
"-f",
|
||||
"include_openwebui=false",
|
||||
"-f",
|
||||
|
||||
Reference in New Issue
Block a user