This commit is contained in:
James Ives 2020-06-26 14:11:02 -04:00
parent 470419049a
commit a6936ef037
3 changed files with 3 additions and 3 deletions

2
lib/constants.d.ts vendored
View File

@ -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. */

2
lib/execute.d.ts vendored
View File

@ -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<any>;
export declare function execute(cmd: string, cwd: string, silent: boolean): Promise<any>;
export declare function stdout(data: any): string | void;

View File

@ -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);
}