Skip to content

Commit

Permalink
Also copy dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 committed Mar 7, 2020
1 parent e1e24eb commit 06ac8ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ var writeToProcess = function (command, args, opts) { return new Promise(functio
folder = path.resolve(process.cwd(), config.folder);
console.log("##[info] Copying all files from " + folder);
// TODO: replace this copy with a node implementation
return [4 /*yield*/, exec("cp -r " + folder + "/* ./", { env: env, cwd: REPO_TEMP })];
return [4 /*yield*/, exec("cp -rT " + folder + "/ ./", { env: env, cwd: REPO_TEMP })];
case 25:
// TODO: replace this copy with a node implementation
_e.sent();
Expand Down
2 changes: 1 addition & 1 deletion action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const writeToProcess = (command: string, args: string[], opts: {env: { [id: stri
const folder = path.resolve(process.cwd(), config.folder);
console.log(`##[info] Copying all files from ${folder}`);
// TODO: replace this copy with a node implementation
await exec(`cp -r ${folder}/* ./`, { env, cwd: REPO_TEMP });
await exec(`cp -rT ${folder}/ ./`, { env, cwd: REPO_TEMP });
await exec(`git add -A .`, { env, cwd: REPO_TEMP });
await exec(`git commit --allow-empty -m "Update ${config.branch} to output generated at ${sha}"`, { env, cwd: REPO_TEMP });
console.log(`##[info] Pushing`);
Expand Down

0 comments on commit 06ac8ba

Please sign in to comment.