File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
website_and_docs/layouts/partials Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ <h2 class="modal-title" id="previous-releases-label">Previous Releases</h2>
21
21
< div class ="modal-body ">
22
22
{{ $.Scratch.Set "counter" 0 }}
23
23
{{ $url := "https://api.github.com/repos/seleniumhq/selenium/releases?per_page=100" }}
24
- {{ $releases := getJSON $url }}
24
+ {{ $githubToken := (getenv "SELENIUM_CI_TOKEN") }}
25
+ {{ $toReplace := printf "://%s@" $githubToken }}
26
+ {{ $tokenInUrl := cond (eq $githubToken "") "://" $toReplace }}
27
+ {{ $urlWithToken := replace $url "://" $tokenInUrl }}
28
+ {{ $releases := getJSON $urlWithToken }}
25
29
{{ range sort $releases "created_at" "desc" }}
26
30
<!-- Expand / Collapse -->
27
31
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
You can’t perform that action at this time.
0 commit comments