From 9bee60e05bdcd410adf58f32b87e212015a65478 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Tue, 7 Nov 2023 16:11:23 +0800 Subject: [PATCH] :green_heart: set ci envs --- .github/workflows/Release.yml | 4 ---- ci/src/check_asset/main.rs | 2 +- ci/src/check_release/main.rs | 2 +- ci/src/upload_asset/main.rs | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index d06dc77..27441ed 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -58,7 +58,6 @@ jobs: - name: Check release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_ACTION_REPOSITORY: ${{ GITHUB_ACTION_REPOSITORY }} run: | cd kobi/ci cargo run --release --bin check-release @@ -123,8 +122,6 @@ jobs: - id: check_asset name: Check asset - env: - GITHUB_ACTION_REPOSITORY: ${{ GITHUB_ACTION_REPOSITORY }} run: | cd kobi/ci cargo run --release --bin check-asset @@ -385,7 +382,6 @@ jobs: if: steps.check_asset.outputs.skip_build != 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_ACTION_REPOSITORY: ${{ GITHUB_ACTION_REPOSITORY }} run: | cd kobi/ci cargo run --release --bin upload-asset diff --git a/ci/src/check_asset/main.rs b/ci/src/check_asset/main.rs index 8545bcb..78c7c30 100644 --- a/ci/src/check_asset/main.rs +++ b/ci/src/check_asset/main.rs @@ -7,7 +7,7 @@ const UA: &str = "actions ci"; #[tokio::main] async fn main() -> Result<()> { - let repo = std::env::var("GITHUB_ACTION_REPOSITORY")?; + let repo = std::env::var("GITHUB_REPOSITORY")?; if repo.is_empty() { panic!("Can't got repo path"); } diff --git a/ci/src/check_release/main.rs b/ci/src/check_release/main.rs index 687ed90..38b1b35 100644 --- a/ci/src/check_release/main.rs +++ b/ci/src/check_release/main.rs @@ -11,7 +11,7 @@ async fn main() -> Result<()> { panic!("Please set GITHUB_TOKEN"); } - let repo = std::env::var("GITHUB_ACTION_REPOSITORY")?; + let repo = std::env::var("GITHUB_REPOSITORY")?; if repo.is_empty() { panic!("Can't got repo path"); } diff --git a/ci/src/upload_asset/main.rs b/ci/src/upload_asset/main.rs index 7cbf7a3..2aa65c1 100644 --- a/ci/src/upload_asset/main.rs +++ b/ci/src/upload_asset/main.rs @@ -13,7 +13,7 @@ async fn main() -> Result<()> { } // get ghToken - let repo = std::env::var("GITHUB_ACTION_REPOSITORY")?; + let repo = std::env::var("GITHUB_REPOSITORY")?; if repo.is_empty() { panic!("Can't got repo path"); }