Display content

This commit is contained in:
CrazyMax 2019-11-15 16:33:21 +01:00
parent 38e9e1525a
commit 6795b3f28e
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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 >