Skip to content

Commit

Permalink
handle empty engine-version
Browse files Browse the repository at this point in the history
handle empty engine-version
  • Loading branch information
tsirysndr committed May 3, 2024
1 parent 31a6a69 commit 5349026
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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}`);
if (engineVersion) {
action.exportVariable("FLUENTCI_ENGINE_VERSION", engineVersion.startsWith("v") ? engineVersion : `v${engineVersion}`);
}
if (pipeline) {
if (wasm) {
if (!args.length) {
Expand Down
10 changes: 6 additions & 4 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5349026

Please sign in to comment.