Skip to content

Commit

Permalink
change env name
Browse files Browse the repository at this point in the history
  • Loading branch information
jbesraa committed Oct 6, 2023
1 parent 37f3a78 commit 5ad84cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fplus-lib/src/external_services/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ impl GithubWrapper<'static> {
main_branch_hash,
} = GithubParams::test_env();
dotenv::dotenv().ok();
let gh_private_key = match std::env::var("GITHUB_PRIVATE_KEY") {
let gh_private_key = match std::env::var("GH_PRIVATE_KEY") {
Ok(g) => g,
Err(_) => {
println!("GITHUB_PRIVATE_KEY not found in .env file");
println!("GH_PRIVATE_KEY not found in .env file");
std::process::exit(1);
}
};
Expand Down

0 comments on commit 5ad84cf

Please sign in to comment.