Skip to content

Commit 06ac8ba

Browse files
committed
Also copy dotfiles
1 parent e1e24eb commit 06ac8ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: action/dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ var writeToProcess = function (command, args, opts) { return new Promise(functio
821821
folder = path.resolve(process.cwd(), config.folder);
822822
console.log("##[info] Copying all files from " + folder);
823823
// TODO: replace this copy with a node implementation
824-
return [4 /*yield*/, exec("cp -r " + folder + "/* ./", { env: env, cwd: REPO_TEMP })];
824+
return [4 /*yield*/, exec("cp -rT " + folder + "/ ./", { env: env, cwd: REPO_TEMP })];
825825
case 25:
826826
// TODO: replace this copy with a node implementation
827827
_e.sent();

Diff for: action/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ const writeToProcess = (command: string, args: string[], opts: {env: { [id: stri
287287
const folder = path.resolve(process.cwd(), config.folder);
288288
console.log(`##[info] Copying all files from ${folder}`);
289289
// TODO: replace this copy with a node implementation
290-
await exec(`cp -r ${folder}/* ./`, { env, cwd: REPO_TEMP });
290+
await exec(`cp -rT ${folder}/ ./`, { env, cwd: REPO_TEMP });
291291
await exec(`git add -A .`, { env, cwd: REPO_TEMP });
292292
await exec(`git commit --allow-empty -m "Update ${config.branch} to output generated at ${sha}"`, { env, cwd: REPO_TEMP });
293293
console.log(`##[info] Pushing`);

0 commit comments

Comments
 (0)