From 050f26a821121d7ad77d44992b22e9a5b49456e9 Mon Sep 17 00:00:00 2001 From: Daya Adianto Date: Thu, 25 Aug 2022 01:30:05 +0700 Subject: [PATCH 1/2] Use getBooleanInput function to read useDocker input value --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c446c78..907e4e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import gitDeployment from "./git/main"; process.env.HEROKU_API_KEY = HerokuApiKey; const appName = core.getInput("herokuAppName"); core.info(`Application Name: ${appName}`); - const useDocker = new Boolean(core.getInput("useDocker")); + const useDocker = core.getBooleanInput("useDocker"); if (useDocker) { console.log("🐋 deployment with Docker 🐋"); dockerDeployment(appName); From 9c7e455b17ec7d6aaf4e869450264a73b2c91183 Mon Sep 17 00:00:00 2001 From: Daya Adianto Date: Thu, 25 Aug 2022 01:31:35 +0700 Subject: [PATCH 2/2] Set default value of useDocker to false in action.yml --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 5c8092c..a220ad3 100644 --- a/action.yml +++ b/action.yml @@ -9,8 +9,8 @@ inputs: description: "Heroku API key" required: true useDocker: - description: "Selected branch to deployment" - default: "" + description: "Deploy the container image (Dockerfile) to Heroku" + default: "false" required: false branch: description: "Selected branch to deployment"