ci: fix release-path docker rerun commands

This commit is contained in:
Peter Steinberger
2026-05-02 13:26:43 +01:00
parent f4a69c4620
commit 237d0869dc
4 changed files with 41 additions and 2 deletions

View File

@@ -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",