changed source file name

This commit is contained in:
Naveenraj M
2020-03-29 21:40:58 +05:30
parent 9127a2bbc2
commit b9885f9c7d
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ function download_archive(owner, repo, ref) {
const octokit = new Octokit();
const archive_format = "tarball";
const tag = "v1.0.0";
const tarFile = `${tag}.tar.gz`;
const tarFile = `${repo}-1.0.tar.gz`;
console.log("Calling API ...");
yield octokit.repos.getArchiveLink({
owner,

View File

@ -31,7 +31,7 @@ function run() {
// Get tar.gz file of release
yield download_tar(owner, repo, ref).then(function (filePath) {
console.log(`Tar Path for copy : ${filePath}`);
io.cp(filePath, '/root/rpmbuild/SOURCES');
io.cp(`${repo}-1.0.tar.gz`, '/root/rpmbuild/SOURCES');
}).catch(function (error) {
console.log(error);
});

View File

@ -12,7 +12,7 @@ async function download_archive(owner, repo, ref ) {
const tag = "v1.0.0"
const tarFile = `${tag}.tar.gz`;
const tarFile = `${repo}-1.0.tar.gz`;
console.log("Calling API ...");
await octokit.repos.getArchiveLink({

View File

@ -32,7 +32,7 @@ async function run() {
ref
).then( function(filePath){
console.log(`Tar Path for copy : ${filePath}`);
io.cp(filePath, '/root/rpmbuild/SOURCES');
io.cp(`${repo}-1.0.tar.gz`, '/root/rpmbuild/SOURCES');
}).catch(function(error){
console.log(error);
});