diff --git a/ci/src/check_asset/main.rs b/ci/src/check_asset/main.rs index 42a843d..3e2f5a6 100644 --- a/ci/src/check_asset/main.rs +++ b/ci/src/check_asset/main.rs @@ -9,9 +9,9 @@ const UA: &str = "niuhuan jasmine ci"; #[tokio::main] async fn main() -> Result<()> { - let gh_token = std::env::var("GH_TOKEN")?; + let gh_token = std::env::var("GITHUB_TOKEN")?; if gh_token.is_empty() { - panic!("Please set GH_TOKEN"); + panic!("Please set GITHUB_TOKEN"); } let flutter_version = std::env::var("flutter_version")?; if flutter_version.is_empty() { diff --git a/ci/src/check_release/main.rs b/ci/src/check_release/main.rs index db35573..75af5d1 100644 --- a/ci/src/check_release/main.rs +++ b/ci/src/check_release/main.rs @@ -10,9 +10,9 @@ const MAIN_BRANCH: &str = "master"; #[tokio::main] async fn main() -> Result<()> { // get ghToken - let gh_token = std::env::var("GH_TOKEN")?; + let gh_token = std::env::var("GITHUB_TOKEN")?; if gh_token.is_empty() { - panic!("Please set GH_TOKEN"); + panic!("Please set GITHUB_TOKEN"); } let vs_code_txt = tokio::fs::read_to_string("version.code.txt").await?; diff --git a/ci/src/upload_asset/main.rs b/ci/src/upload_asset/main.rs index 79e03ad..6e8f497 100644 --- a/ci/src/upload_asset/main.rs +++ b/ci/src/upload_asset/main.rs @@ -10,7 +10,7 @@ const UA: &str = "niuhuan jasmine ci"; #[tokio::main] async fn main() -> Result<()> { // get ghToken - let gh_token = std::env::var("GH_TOKEN")?; + let gh_token = std::env::var("GITHUB_TOKEN")?; let target = std::env::var("TARGET")?; let flutter_version = std::env::var("flutter_version")?;