diff --git a/dist/setup.js b/dist/setup.js index d296262..11dfb33 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}`); + action.exportVariable("FLUENTCI_ENGINE_VERSION", engineVersion.startsWith("v") && engineVersion + ? engineVersion + : `v${engineVersion}`); if (pipeline) { if (wasm) { if (!args.length) { diff --git a/src/setup.ts b/src/setup.ts index d1a0c99..e6bb514 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -52,7 +52,9 @@ export default async ({ action.exportVariable( "FLUENTCI_ENGINE_VERSION", - engineVersion.startsWith("v") ? engineVersion : `v${engineVersion}` + engineVersion.startsWith("v") && engineVersion + ? engineVersion + : `v${engineVersion}` ); if (pipeline) {