diff --git a/dist/setup.js b/dist/setup.js index d296262..25c2bc8 100644 --- a/dist/setup.js +++ b/dist/setup.js @@ -33,7 +33,9 @@ export default async ({ daggerVersion, engineVersion, wasm, pipeline, args, work ]); await exec("sudo", ["mv", "bin/dagger", "/usr/local/bin"]); const version = await verifyFluentCI("fluentci"); - action.exportVariable("FLUENTCI_ENGINE_VERSION", engineVersion.startsWith("v") ? engineVersion : `v${engineVersion}`); + if (engineVersion) { + action.exportVariable("FLUENTCI_ENGINE_VERSION", engineVersion.startsWith("v") ? engineVersion : `v${engineVersion}`); + } if (pipeline) { if (wasm) { if (!args.length) { diff --git a/src/setup.ts b/src/setup.ts index d1a0c99..0ae78ec 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -50,10 +50,12 @@ export default async ({ await exec("sudo", ["mv", "bin/dagger", "/usr/local/bin"]); const version = await verifyFluentCI("fluentci"); - action.exportVariable( - "FLUENTCI_ENGINE_VERSION", - engineVersion.startsWith("v") ? engineVersion : `v${engineVersion}` - ); + if (engineVersion) { + action.exportVariable( + "FLUENTCI_ENGINE_VERSION", + engineVersion.startsWith("v") ? engineVersion : `v${engineVersion}` + ); + } if (pipeline) { if (wasm) {