File tree Expand file tree Collapse file tree
packages/producer/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ import { tmpdir } from "node:os";
2323import { join , resolve } from "node:path" ;
2424import { createRenderJob , executeRenderJob } from "../src/index.js" ;
2525
26- const COMP = process . env . PRODUCER_VALIDATE_COMP ?? "sub-composition-video" ;
27- const MIN_PSNR = Number . parseFloat ( process . env . PRODUCER_VALIDATE_MIN_PSNR ?? "25" ) ;
26+ // `||` not `??` — the workflow passes empty strings on a push trigger (inputs
27+ // are only populated for workflow_dispatch), and "" must fall through to the default.
28+ const COMP = process . env . PRODUCER_VALIDATE_COMP || "sub-composition-video" ;
29+ const MIN_PSNR = Number . parseFloat ( process . env . PRODUCER_VALIDATE_MIN_PSNR || "25" ) ;
2830const work = mkdtempSync ( join ( tmpdir ( ) , "fastvideo-" ) ) ;
2931
3032process . env . PRODUCER_ENABLE_BROWSER_POOL = "false" ;
You can’t perform that action at this time.
0 commit comments