From 3791d3cc0d5e342c2e3be90a62c9c4f0c22a3a5d Mon Sep 17 00:00:00 2001 From: Sumudu Nissanka Date: Tue, 20 Aug 2024 11:08:50 +0530 Subject: [PATCH] Update main.bal with type casting --- release/main.bal | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release/main.bal b/release/main.bal index 39dbd068..206227fe 100644 --- a/release/main.bal +++ b/release/main.bal @@ -35,11 +35,11 @@ const decimal WORKFLOW_POLL_INTERVAL = 5; configurable string token = os:getEnv(ACCESS_TOKEN_ENV); -configurable boolean releaseLibs = check os:getEnv(RELEASE_LIBS).ensureType(); -configurable boolean releaseExtensions = check os:getEnv(RELASE_EXTENSIONS).ensureType(); -configurable boolean releaseTools = check os:getEnv(RELEASE_TOOLS).ensureType(); -configurable boolean releaseHandwrittenConnectors = check os:getEnv(RELEASE_HANDWRITTEN_CONNECTORS).ensureType(); -configurable boolean releaseGeneratedConnectors = check os:getEnv(RELEASE_GENERATED_CONNECTORS).ensureType(); +configurable boolean releaseLibs = check boolean:fromString(os:getEnv(RELEASE_LIBS)); +configurable boolean releaseExtensions = check boolean:fromString(os:getEnv(RELASE_EXTENSIONS)); +configurable boolean releaseTools = check boolean:fromString(os:getEnv(RELEASE_TOOLS)); +configurable boolean releaseHandwrittenConnectors = check boolean:fromString(os:getEnv(RELEASE_HANDWRITTEN_CONNECTORS)); +configurable boolean releaseGeneratedConnectors = check boolean:fromString(os:getEnv(RELEASE_GENERATED_CONNECTORS)); // Provide the correct workflow as a configurable variable. configurable string workflow = ?;