Skip to content

Commit

Permalink
Support using mirror URL when fetching Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanecc committed Jun 17, 2024
1 parent 177561c commit 61bb19f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ function fetchVersions()
local rubyVersions = {}
local jrubyVersions = {}
local homebrewRubyVersions = {}
local githubURL = os.getenv("GITHUB_URL") or "https://github.com/"
local resp, err = http.get({
url = "https://github.com/yanecc/vfox-ruby/releases/manifest",
url = githubURL:gsub("/$", "") .. "/yanecc/vfox-ruby/releases/manifest",
})
if err ~= nil then
error("Failed to request: " .. err)
Expand Down

0 comments on commit 61bb19f

Please sign in to comment.