From a6936ef0376543ff70bdd1935e0f06f9c3700933 Mon Sep 17 00:00:00 2001 From: James Ives Date: Fri, 26 Jun 2020 14:11:02 -0400 Subject: [PATCH] Silence --- lib/constants.d.ts | 2 +- lib/execute.d.ts | 2 +- lib/git.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/constants.d.ts b/lib/constants.d.ts index 492c2225..979cad2b 100644 --- a/lib/constants.d.ts +++ b/lib/constants.d.ts @@ -32,7 +32,7 @@ export interface ActionInterface { /** Wipes the commit history from the deployment branch in favor of a single commit. */ singleCommit?: boolean | null; /** Determines if the action should run in silent mode or not. */ - silent?: boolean; + silent: boolean; /** Set to true if you're using an ssh client in your build step. */ ssh?: boolean | null; /** If you'd like to push the contents of the deployment folder into a specific directory on the deployment branch you can specify it here. */ diff --git a/lib/execute.d.ts b/lib/execute.d.ts index 4d3be9da..d0f23c3d 100644 --- a/lib/execute.d.ts +++ b/lib/execute.d.ts @@ -5,5 +5,5 @@ * @param {string} cwd - The current working directory. * @param {boolean} silent - Determines if the in/out should be silenced or not. */ -export declare function execute(cmd: string, cwd: string, silent?: boolean): Promise; +export declare function execute(cmd: string, cwd: string, silent: boolean): Promise; export declare function stdout(data: any): string | void; diff --git a/lib/git.js b/lib/git.js index 34883f39..b39211ba 100644 --- a/lib/git.js +++ b/lib/git.js @@ -86,7 +86,7 @@ function deploy(action) { Checks to see if the remote exists prior to deploying. If the branch doesn't exist it gets created here as an orphan. */ - const branchExists = yield execute_1.execute(`git ls-remote --heads ${action.repositoryPath} ${action.branch} | wc -l`, action.workspace); + const branchExists = yield execute_1.execute(`git ls-remote --heads ${action.repositoryPath} ${action.branch} | wc -l`, action.workspace, action.silent); if (!branchExists && !action.isTest) { yield generateBranch(action); }