mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
tmp check
This commit is contained in:
@ -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/`);
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user