Skip to content

Commit

Permalink
handle empty engine-version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed May 3, 2024
1 parent 31a6a69 commit 5ecba92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5ecba92

Please sign in to comment.