Skip to content

Commit

Permalink
feat(github): display context
Browse files Browse the repository at this point in the history
  • Loading branch information
fargito committed Jan 16, 2025
1 parent 5bcb13b commit 06848b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/run/ci_provider/github_actions/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ impl TryFrom<&Config> for GitHubActionsProvider {
None
};

let custom_job = get_env_variable("CUSTOM_JOB")?;
let custom_steps = get_env_variable("CUSTOM_STEPS")?;
let custom_matrix = get_env_variable("CUSTOM_MATRIX")?;
let custom_env = get_env_variable("CUSTOM_ENV")?;
let custom_github = get_env_variable("CUSTOM_GITHUB")?;
let custom_strategy = get_env_variable("CUSTOM_STRATEGY")?;

info!("{custom_job}");
info!("{custom_steps}");
info!("{custom_matrix}");
info!("{custom_env}");
info!("{custom_github}");
info!("{custom_strategy}");

let github_event_name = get_env_variable("GITHUB_EVENT_NAME")?;
let event = serde_json::from_str(&format!("\"{}\"", github_event_name)).context(
format!("Event {} is not supported by CodSpeed", github_event_name),
Expand Down

0 comments on commit 06848b2

Please sign in to comment.