Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yutao8 authored Jan 16, 2024
1 parent cba2fa9 commit 3243512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
define('GH_TOKEN', $_ENV['GH_TOKEN'] ?? null); //github token github_pat_xxxxx https://github.com/settings/tokens?type=beta
define('GPT_URL', $_ENV['GPT_URL'] ?? null); //chatgpt api url
define('GPT_KEY', $_ENV['GPT_KEY'] ?? null); //chatgpt key
$username = isset($_ENV['GITHUB_ACTOR']) ? $_ENV['GITHUB_ACTOR'] : 'yutao8';

GH_TOKEN or die('GH_TOKEN is null!');

$listAll = getAllStarList('yutao8');
$listAll = getAllStarList($username);
makeMarkdown($listAll);
echo file_get_contents('index.html');

Expand Down

0 comments on commit 3243512

Please sign in to comment.