Skip to content

Commit

Permalink
Update git.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Apr 11, 2020
1 parent 78e2cce commit f8bad71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@actions/core");
const io_1 = require("@actions/io");
const execute_1 = require("./execute");
const util_1 = require("./util");
/* Initializes git in the workspace. */
Expand Down Expand Up @@ -143,9 +144,8 @@ function deploy(action) {
throw new Error(`The deploy step encountered an error: ${util_1.suppressSensitiveInformation(error.message, 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);
// Ensures the deployment directory is safely removed after each deployment.
yield io_1.rmRF(temporaryDeploymentDirectory);
}
});
}
Expand Down

0 comments on commit f8bad71

Please sign in to comment.