mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
3.4.7
This commit is contained in:
parent
ce9af1d28d
commit
0f7ac9d558
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user