Skip to content

Commit

Permalink
fix the spec filename issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wyTrivail committed Jun 20, 2020
1 parent 7933177 commit a18ad11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ async function run() {

// Execute rpmbuild , -ba generates both RPMS and SPRMS
try {
let splitted = specFile.split("/");
let specFileName = splitted[splitted.length-1];
await exec.exec(
`rpmbuild -ba /github/home/rpmbuild/SPECS/${specFile}`
`rpmbuild -ba /github/home/rpmbuild/SPECS/${specFileName}`
);
} catch (err) {
core.setFailed(`action failed with error: ${err}`);
Expand Down

0 comments on commit a18ad11

Please sign in to comment.