mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Silence
This commit is contained in:
parent
470419049a
commit
a6936ef037
2
lib/constants.d.ts
vendored
2
lib/constants.d.ts
vendored
@ -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
2
lib/execute.d.ts
vendored
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user