Skip to content

Commit

Permalink
Use gh-pages specific environment
Browse files Browse the repository at this point in the history
GH pages does not set CI/GITHUB_ACTIONS envvars, but rather uses jekyll environment instead.
  • Loading branch information
kzu committed Sep 2, 2024
1 parent 4a20cf7 commit bd1a1c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/github/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ var data = {
"unsupported": false
};

{% if ENV['CI'] != 'true' %}
{% if jekyll.environment == "production" %}
// this is CI, use production issuer
{% else %}
data.issuer = "donkey-emerging-civet.ngrok-free.app";
{% endif %}

Expand Down Expand Up @@ -233,7 +235,9 @@ async function lookupSponsor() {
data.account = document.getElementById('account').value;
console.log('Looking up sponsor: ' + data.account);
var branch = "main";
{% if ENV['CI'] != "true" %}
{% if jekyll.environment == "production" %}
// this is CI, use main branch
{% else %}
branch = "dev";
{% endif %}

Expand Down

0 comments on commit bd1a1c1

Please sign in to comment.