ci_env 0.5.2

Detect CI information from the environment.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::api::{CiEnvironment, CiProvider};
use crate::github;

// https://docs.gitea.com/usage/actions/comparison
// Gitea Actions is GitHub Actions compatible and exposes the same `GITHUB_*`
// environment variables, plus `GITEA_ACTIONS=true` to tell them apart
pub fn create_environment() -> CiEnvironment {
    CiEnvironment {
        provider: CiProvider::GiteaActions,
        ..github::create_environment()
    }
}