tmp check

This commit is contained in:
Naveenraj M
2020-03-30 02:45:46 +05:30
parent 12a2b711a3
commit 9f694f400a
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ function run() {
// Copy spec file from path specFile to /root/rpmbuild/SPECS/
yield io.cp(`/github/workspace/${specFile}`, '/github/home/rpmbuild/SPECS/');
yield exec.exec(`cp -R /github/workspace/ /tmp/${repo}`);
yield exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`);
yield exec.exec(`tar -czvf ${repo}.tar.gz ${repo}`, { cwd: "/tmp" });
// Get repo files from /github/workspace/
yield exec.exec('ls -la /tmp');
yield exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`);

View File

@ -27,7 +27,7 @@ async function run() {
await exec.exec(`cp -R /github/workspace/ /tmp/${repo}`);
await exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`);
await exec.exec(`tar -czvf ${repo}.tar.gz ${repo}`, { cwd : "/tmp"});
// Get repo files from /github/workspace/
await exec.exec('ls -la /tmp');