@@ -30545,11 +30545,11 @@ function pushCurrentBranch() {
3054530545}
3054630546function addFileChanges(globPatterns) {
3054730547 return __awaiter(this, void 0, void 0, function* () {
30548- const cwd = (0, cwd_1.getCwd )();
30549- const cwdPaths = globPatterns.map((p) => (0, node_path_1.join)(cwd , p));
30548+ const workspace = (0, cwd_1.getWorkspace )();
30549+ const workspacePaths = globPatterns.map((p) => (0, node_path_1.join)(workspace , p));
3055030550 const debugOutput = [];
3055130551 const warningOutput = [];
30552- yield (0, exec_1.exec)('git', ['add', '--', ...cwdPaths ], {
30552+ yield (0, exec_1.exec)('git', ['add', '--', ...workspacePaths ], {
3055330553 silent: true,
3055430554 ignoreReturnCode: true,
3055530555 listeners: {
@@ -30999,20 +30999,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
3099930999};
3100031000Object.defineProperty(exports, "__esModule", ({ value: true }));
3100131001exports.getCwd = getCwd;
31002+ exports.getWorkspace = getWorkspace;
3100231003const core = __importStar(__nccwpck_require__(2186));
3100331004const input_1 = __nccwpck_require__(5073);
3100431005function getCwd() {
31005- const workspace = (0, input_1.getInput)('workspace', {
31006- default: process.env.GITHUB_WORKSPACE,
31007- });
31008- if (workspace) {
31009- core.debug(`cwd: ${workspace}`);
31010- return workspace;
31011- }
3101231006 const current = process.cwd();
3101331007 core.debug(`cwd: ${current}`);
3101431008 return current;
3101531009}
31010+ function getWorkspace() {
31011+ const workspace = (0, input_1.getInput)('workspace', {
31012+ default: process.env.GITHUB_WORKSPACE,
31013+ });
31014+ core.debug(`workspace: ${workspace}`);
31015+ return workspace;
31016+ }
3101631017
3101731018
3101831019/***/ }),
0 commit comments