From c44a980f92f4fa6ec46ef95eb05a2018a59b0423 Mon Sep 17 00:00:00 2001 From: kiryl1 <64288350+kiryl1@users.noreply.github.com> Date: Wed, 29 Jun 2022 15:04:07 -0700 Subject: [PATCH] Update index.js --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index c7499af..f4c4ddb 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ var repo_list_string = core.getInput("repo") var repo_list = repo_list_string.split(","); -async function updateDep(FILE_NAME, tag_name, owner) { +async function updateDep(FILE_NAME, tag_name,repo, owner) { console.log(FILE_NAME) var TAR_URL = 'https://api.github.com/repos/' + owner + '/' + repo + '/tarball/' + tag_name; @@ -116,7 +116,7 @@ async function syncDependencies(repo) { var g_tag = gh_latest_release.data.tag_name.replace("v", "") if (!s3_dep_list) { - updateDep(repo + "-" + g_tag + ".tar.gz", g_tag, owner) + updateDep(repo + "-" + g_tag + ".tar.gz", g_tag, repo, owner) return } @@ -127,7 +127,7 @@ async function syncDependencies(repo) { if (compareVersions(g_tag, s3_latest_tag)) { - updateDep(repo + "-" + g_tag + ".tar.gz", g_tag, owner) + updateDep(repo + "-" + g_tag + ".tar.gz", g_tag, repo, owner) } }