mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
trim string
This commit is contained in:
@ -55,7 +55,7 @@ function run() {
|
|||||||
// If you want to upload yourself , need to write api call to upload as asset
|
// If you want to upload yourself , need to write api call to upload as asset
|
||||||
//core.setOutput("rpmPath", rpmPath)
|
//core.setOutput("rpmPath", rpmPath)
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
cp.exec('ls /github/home/rpmbuild/SRPMS/', (err, stdout, stderr) => {
|
yield cp.exec('ls /github/home/rpmbuild/SRPMS/', (err, stdout, stderr) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
//some err occurred
|
//some err occurred
|
||||||
console.error(err);
|
console.error(err);
|
||||||
@ -67,6 +67,7 @@ function run() {
|
|||||||
console.log(`stderr: ${stderr}`);
|
console.log(`stderr: ${stderr}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
myOutput = myOutput.trim();
|
||||||
// only contents of workspace can be changed by actions and used by subsequent actions
|
// only contents of workspace can be changed by actions and used by subsequent actions
|
||||||
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
||||||
yield exec.exec(`mkdir -p rpmbuild/SRPMS`);
|
yield exec.exec(`mkdir -p rpmbuild/SRPMS`);
|
||||||
|
@ -63,7 +63,7 @@ async function run() {
|
|||||||
//core.setOutput("rpmPath", rpmPath)
|
//core.setOutput("rpmPath", rpmPath)
|
||||||
|
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
cp.exec('ls /github/home/rpmbuild/SRPMS/', (err, stdout, stderr) => {
|
await cp.exec('ls /github/home/rpmbuild/SRPMS/', (err, stdout, stderr) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
//some err occurred
|
//some err occurred
|
||||||
console.error(err)
|
console.error(err)
|
||||||
@ -75,6 +75,7 @@ async function run() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
myOutput = myOutput.trim();
|
||||||
|
|
||||||
// only contents of workspace can be changed by actions and used by subsequent actions
|
// only contents of workspace can be changed by actions and used by subsequent actions
|
||||||
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
||||||
|
Reference in New Issue
Block a user