Skip to content

Commit

Permalink
💚 set ci envs
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Nov 7, 2023
1 parent caed28a commit 9bee60e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci/src/check_asset/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion ci/src/check_release/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion ci/src/upload_asset/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 9bee60e

Please sign in to comment.