mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
providing rpm directory
This commit is contained in:
@ -83,12 +83,16 @@ function run() {
|
||||
// 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
|
||||
yield exec.exec(`mkdir -p rpmbuild/SRPMS`);
|
||||
yield exec.exec(`mkdir -p rpmbuild/RPMS`);
|
||||
yield exec.exec(`cp /github/home/rpmbuild/SRPMS/${myOutput} rpmbuild/SRPMS`);
|
||||
yield cp.exec(`cp -R /github/home/rpmbuild/RPMS/. rpmbuild/RPMS/`);
|
||||
yield exec.exec(`ls -la rpmbuild/SRPMS`);
|
||||
yield exec.exec(`ls -la rpmbuild/RPMS`);
|
||||
// set output to path relative to workspace ex ./rpm/
|
||||
core.setOutput("source_rpm_dir_path", `rpmbuild/SRPMS/${myOutput}`); // path to Source RPM directory
|
||||
core.setOutput("source_rpm_dir_path", `rpmbuild/SRPMS/`); // path to SRPMS directory
|
||||
core.setOutput("source_rpm_path", `rpmbuild/SRPMS/${myOutput}`); // path to Source RPM file
|
||||
core.setOutput("source_rpm_name", `${myOutput}`); // name of Source RPM file
|
||||
core.setOutput("rpm_dir_path", `rpmbuild/RPMS/`); // path to RPMS directory
|
||||
core.setOutput("rpm_content_type", "application/octet-stream"); // Content-type for Upload
|
||||
}
|
||||
catch (error) {
|
||||
|
19
src/main.ts
19
src/main.ts
@ -90,16 +90,21 @@ async function run() {
|
||||
|
||||
// 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
|
||||
await exec.exec(`mkdir -p rpmbuild/SRPMS`)
|
||||
await exec.exec(`mkdir -p rpmbuild/SRPMS`);
|
||||
await exec.exec(`mkdir -p rpmbuild/RPMS`);
|
||||
|
||||
await exec.exec(`cp /github/home/rpmbuild/SRPMS/${myOutput} rpmbuild/SRPMS`)
|
||||
|
||||
await exec.exec(`ls -la rpmbuild/SRPMS`)
|
||||
await exec.exec(`cp /github/home/rpmbuild/SRPMS/${myOutput} rpmbuild/SRPMS`);
|
||||
await cp.exec(`cp -R /github/home/rpmbuild/RPMS/. rpmbuild/RPMS/`);
|
||||
|
||||
await exec.exec(`ls -la rpmbuild/SRPMS`);
|
||||
await exec.exec(`ls -la rpmbuild/RPMS`);
|
||||
|
||||
// set output to path relative to workspace ex ./rpm/
|
||||
core.setOutput("source_rpm_dir_path", `rpmbuild/SRPMS/${myOutput}`); // path to Source RPM directory
|
||||
core.setOutput("source_rpm_path", `rpmbuild/SRPMS/${myOutput}`); // path to Source RPM file
|
||||
core.setOutput("source_rpm_name", `${myOutput}`); // name of Source RPM file
|
||||
core.setOutput("source_rpm_dir_path", `rpmbuild/SRPMS/`); // path to SRPMS directory
|
||||
core.setOutput("source_rpm_path", `rpmbuild/SRPMS/${myOutput}`); // path to Source RPM file
|
||||
core.setOutput("source_rpm_name", `${myOutput}`); // name of Source RPM file
|
||||
|
||||
core.setOutput("rpm_dir_path", `rpmbuild/RPMS/`); // path to RPMS directory
|
||||
|
||||
core.setOutput("rpm_content_type", "application/octet-stream"); // Content-type for Upload
|
||||
|
||||
|
Reference in New Issue
Block a user