Skip to content

Commit

Permalink
Display content
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Nov 15, 2019
1 parent 38e9e15 commit 6795b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function run() {
process.chdir(tmpdir);
core.info(`🏃 Copying ${path.join(currentdir, build_dir)} contents to ${tmpdir}`);
fs_extra_1.copySync(path.join(currentdir, build_dir), tmpdir);
yield exec.exec('ls', ['-al']);
const remote_branch_exists = child_process.execSync(`git ls-remote --heads ${remote_url} ${target_branch}`, { encoding: 'utf8' }).trim().length >
0;
if (remote_branch_exists) {
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ async function run() {

core.info(`🏃 Copying ${path.join(currentdir, build_dir)} contents to ${tmpdir}`);
copySync(path.join(currentdir, build_dir), tmpdir);
await exec.exec('ls', ['-al']);

const remote_branch_exists =
child_process.execSync(`git ls-remote --heads ${remote_url} ${target_branch}`, {encoding: 'utf8'}).trim().length >
Expand Down

0 comments on commit 6795b3f

Please sign in to comment.