Skip to content

Commit 6148e88

Browse files
committed
internal: Load environment variables in regen_weekly.sh
Update the weekly model score regeneration script to source environment variables from ./.env if the file exists. This ensures that necessary API keys and configurations are available when running the script.
1 parent 927aabc commit 6148e88

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

internal/regen_weekly.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ set -euo pipefail
1010
cd "$(dirname "$0")"
1111
cd ..
1212

13+
if [[ -f "./.env" ]]; then
14+
set -a
15+
# shellcheck disable=SC1091
16+
source "./.env"
17+
set +a
18+
fi
19+
1320
go install ./cmd/list-models ./cmd/scoreboard
1421
# Providers that can't run in CI: local servers, or CLI wrappers.
1522
EXCLUDE="bfl claudecode codex llamacpp ollama openaicompatible opencode openaibase openaichat openairesponses perplexity pi"

0 commit comments

Comments
 (0)