diff --git a/README.md b/README.md index 7d27788..dbf9d9b 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,16 @@ By default setup-minikube caches the ISO, kicbase, and preload using GitHub Acti ## Configurable Fields +
+ start (optional) +
+    - default: true
+    - options:
+      - true
+      - false
+  
+
+
minikube-version (optional)
diff --git a/action.yml b/action.yml
index 171e839..d3a551a 100644
--- a/action.yml
+++ b/action.yml
@@ -5,6 +5,10 @@ branding:
   icon: 'box'
   color: 'blue'
 inputs:
+  start:
+    description: 'Start minikube after install is complete'
+    required: false
+    default: true
   cache:
     description: 'Cache ISO, kicbase, and preloads to speed up starting minikube'
     required: false
diff --git a/dist/index.js b/dist/index.js
index 38f9481..4d5d148 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -226,7 +226,9 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
         minikubeVersion = minikubeVersion === 'stable' ? 'latest' : minikubeVersion;
         const installPath = (0, core_1.getInput)('install-path');
         yield (0, download_1.downloadMinikube)(minikubeVersion, installPath);
-        yield (0, start_1.startMinikube)();
+        if ((0, core_1.getInput)('start').toLowerCase() === 'true') {
+            yield (0, start_1.startMinikube)();
+        }
     }
     catch (error) {
         if (error instanceof Error) {
diff --git a/src/main.ts b/src/main.ts
index 8314102..5c70da0 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -10,7 +10,9 @@ const run = async (): Promise => {
     minikubeVersion = minikubeVersion === 'stable' ? 'latest' : minikubeVersion
     const installPath = getInput('install-path')
     await downloadMinikube(minikubeVersion, installPath)
-    await startMinikube()
+    if (getInput('start').toLowerCase() === 'true') {
+      await startMinikube()
+    }
   } catch (error) {
     if (error instanceof Error) {
       setFailed(error.message)