Skip to content

Commit 63b480d

Browse files
committed
Deploy Production Code for Commit 32ef736 🚀
1 parent 32ef736 commit 63b480d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/git.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1313
};
1414
Object.defineProperty(exports, "__esModule", { value: true });
1515
exports.deploy = exports.init = void 0;
16-
const core_1 = require("@actions/core");
17-
const io_1 = require("@actions/io");
18-
const fs_1 = __importDefault(require("fs"));
1916
const constants_1 = require("./constants");
17+
const util_1 = require("./util");
18+
const io_1 = require("@actions/io");
2019
const execute_1 = require("./execute");
20+
const fs_1 = __importDefault(require("fs"));
2121
const worktree_1 = require("./worktree");
22-
const util_1 = require("./util");
22+
const core_1 = require("@actions/core");
2323
/* Initializes git in the workspace. */
2424
function init(action) {
2525
return __awaiter(this, void 0, void 0, function* () {
@@ -104,6 +104,10 @@ function deploy(action) {
104104
: ''} --exclude .ssh --exclude .git --exclude .github ${action.folderPath === action.workspace
105105
? `--exclude ${temporaryDeploymentDirectory}`
106106
: ''}`, action.workspace, action.silent);
107+
if (action.singleCommit) {
108+
core_1.info(`--DEBUG: Running git add --all .`);
109+
yield execute_1.execute(`git add --all .`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
110+
}
107111
// Use git status to check if we have something to commit.
108112
// Special case is singleCommit with existing history, when
109113
// we're really interested if the diff against the upstream branch

0 commit comments

Comments
 (0)