diff --git a/lib/main.js b/lib/main.js index 9798d99..8ee6565 100644 --- a/lib/main.js +++ b/lib/main.js @@ -31,8 +31,8 @@ function run() { yield exec.exec(`cp -R /github/workspace/ /tmp/${repo}`); yield exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`); // Get repo files from /github/workspace/ - yield exec.exec('ls -la '); - yield io.cp(`/tmp/${repo}.tar.gz`, '/github/home/rpmbuild/SOURCES/'); + yield exec.exec('ls -la /tmp'); + yield exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`); // Copy tar.gz file to /root/rpmbuild/SOURCES // make sure the name of tar.gz is same as given in Source of spec file //await io.cp(tarBallPath, '/root/rpmbuild/SOURCES'); diff --git a/src/main.ts b/src/main.ts index fea8c69..b0ead5f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,8 +30,8 @@ async function run() { await exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`); // Get repo files from /github/workspace/ - await exec.exec('ls -la '); - await io.cp(`/tmp/${repo}.tar.gz`, '/github/home/rpmbuild/SOURCES/'); + await exec.exec('ls -la /tmp'); + await exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`); // Copy tar.gz file to /root/rpmbuild/SOURCES // make sure the name of tar.gz is same as given in Source of spec file