Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryl1 authored Jun 29, 2022
1 parent 586b2f6 commit c44a980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
}

Expand All @@ -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)
}

}
Expand Down

0 comments on commit c44a980

Please sign in to comment.