Skip to content

Commit

Permalink
3.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Apr 9, 2020
1 parent ce9af1d commit 0f7ac9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 0f7ac9d

Please sign in to comment.