Skip to content

Commit 55974d4

Browse files
committed
Deploy Production Code for Commit 7cde9b7 🚀
1 parent 7cde9b7 commit 55974d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/git.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ function deploy(action) {
8585
const branchExists = action.isTest & constants_1.TestFlag.HAS_REMOTE_BRANCH ||
8686
Boolean((yield (0, execute_1.execute)(`git ls-remote --heads ${action.repositoryPath} refs/heads/${action.branch}`, action.workspace, action.silent)).stdout);
8787
yield (0, worktree_1.generateWorktree)(action, temporaryDeploymentDirectory, branchExists);
88+
/* Relaxes permissions of folder due to be deployed so rsync can write to/from it. */
89+
yield (0, execute_1.execute)(`chmod -R +rw ${action.folderPath}`, action.workspace, action.silent);
8890
// Ensures that items that need to be excluded from the clean job get parsed.
8991
let excludes = '';
9092
if (action.clean && action.cleanExclude) {
@@ -189,7 +191,7 @@ function deploy(action) {
189191
// Cleans up temporary files/folders and restores the git state.
190192
(0, core_1.info)('Running post deployment cleanup jobs… 🗑️');
191193
yield (0, execute_1.execute)(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
192-
yield (0, execute_1.execute)(`chmod -R 777 ${temporaryDeploymentDirectory}`, action.workspace, action.silent);
194+
yield (0, execute_1.execute)(`chmod -R +rw ${temporaryDeploymentDirectory}`, action.workspace, action.silent);
193195
yield (0, execute_1.execute)(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent);
194196
yield (0, io_1.rmRF)(temporaryDeploymentDirectory);
195197
}

0 commit comments

Comments
 (0)