mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
await API call
This commit is contained in:
@ -19,7 +19,7 @@ function download_archive(owner, repo, ref) {
|
||||
const tag = "v1.0.0";
|
||||
const tarFile = `${tag}.tar.gz`;
|
||||
console.log("Calling API ...");
|
||||
octokit.repos.getArchiveLink({
|
||||
yield octokit.repos.getArchiveLink({
|
||||
owner,
|
||||
repo,
|
||||
archive_format,
|
||||
|
@ -15,7 +15,7 @@ async function download_archive(owner, repo, ref ) {
|
||||
const tarFile = `${tag}.tar.gz`;
|
||||
|
||||
console.log("Calling API ...");
|
||||
octokit.repos.getArchiveLink({
|
||||
await octokit.repos.getArchiveLink({
|
||||
owner,
|
||||
repo,
|
||||
archive_format,
|
||||
|
Reference in New Issue
Block a user