mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-13 04:23: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 octokit = new Octokit();
|
||||||
const archive_format = "tarball";
|
const archive_format = "tarball";
|
||||||
const tag = "v1.0.0";
|
const tag = "v1.0.0";
|
||||||
const tarFile = `${tag}.tar.gz`;
|
const tarFile = `${repo}-1.0.tar.gz`;
|
||||||
console.log("Calling API ...");
|
console.log("Calling API ...");
|
||||||
yield octokit.repos.getArchiveLink({
|
yield octokit.repos.getArchiveLink({
|
||||||
owner,
|
owner,
|
||||||
|
@ -31,7 +31,7 @@ function run() {
|
|||||||
// Get tar.gz file of release
|
// Get tar.gz file of release
|
||||||
yield download_tar(owner, repo, ref).then(function (filePath) {
|
yield download_tar(owner, repo, ref).then(function (filePath) {
|
||||||
console.log(`Tar Path for copy : ${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) {
|
}).catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
@ -12,7 +12,7 @@ async function download_archive(owner, repo, ref ) {
|
|||||||
|
|
||||||
const tag = "v1.0.0"
|
const tag = "v1.0.0"
|
||||||
|
|
||||||
const tarFile = `${tag}.tar.gz`;
|
const tarFile = `${repo}-1.0.tar.gz`;
|
||||||
|
|
||||||
console.log("Calling API ...");
|
console.log("Calling API ...");
|
||||||
await octokit.repos.getArchiveLink({
|
await octokit.repos.getArchiveLink({
|
||||||
|
@ -32,7 +32,7 @@ async function run() {
|
|||||||
ref
|
ref
|
||||||
).then( function(filePath){
|
).then( function(filePath){
|
||||||
console.log(`Tar Path for copy : ${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){
|
}).catch(function(error){
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user