From 0f7ac9d558dbd2900db043d529408047932bff7a Mon Sep 17 00:00:00 2001 From: JamesIves Date: Thu, 9 Apr 2020 11:05:35 -0400 Subject: [PATCH] 3.4.7 --- lib/git.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/git.js b/lib/git.js index 58ab32da..2b83ef58 100644 --- a/lib/git.js +++ b/lib/git.js @@ -74,9 +74,9 @@ function deploy(action) { core_1.info('Starting to commit changes…'); try { util_1.hasRequiredParameters(action); - const commitMessage = `${!util_1.isNullOrUndefined(action.commitMessage) + const commitMessage = !util_1.isNullOrUndefined(action.commitMessage) ? action.commitMessage - : `Deploying to ${action.branch} from ${action.baseBranch}`} ${process.env.GITHUB_SHA ? `@ ${process.env.GITHUB_SHA}` : ''} 🚀`; + : `Deploying to ${action.branch} from ${action.baseBranch} ${process.env.GITHUB_SHA ? `@ ${process.env.GITHUB_SHA}` : ''} 🚀`; /* Checks to see if the remote exists prior to deploying. If the branch doesn't exist it gets created here as an orphan. @@ -144,6 +144,7 @@ function deploy(action) { } finally { // Ensures the deployment directory is safely removed. + yield execute_1.execute(`chmod u+w -R ${temporaryDeploymentDirectory}`, action.workspace); yield execute_1.execute(`rm -rf ${temporaryDeploymentDirectory}`, action.workspace); } });