mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 12:13:51 +00:00
changed source file name
This commit is contained in:
@ -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,
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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({
|
||||
|
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user