Skip to content

Commit

Permalink
Fix CI detection in docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Sep 2, 2024
1 parent 6cf5662 commit 4a20cf7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/github/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ var data = {
"unsupported": false
};

//if site.env.CI != "true" then branch = "dev" else branch = "main"
{% if site.env.CI != "true" %}
{% if ENV['CI'] != 'true' %}
data.issuer = "donkey-emerging-civet.ngrok-free.app";
{% endif %}

Expand Down Expand Up @@ -234,7 +233,7 @@ async function lookupSponsor() {
data.account = document.getElementById('account').value;
console.log('Looking up sponsor: ' + data.account);
var branch = "main";
{% if site.env.CI != "true" %}
{% if ENV['CI'] != "true" %}
branch = "dev";
{% endif %}

Expand Down

0 comments on commit 4a20cf7

Please sign in to comment.