Skip to content

Commit

Permalink
Trim channel
Browse files Browse the repository at this point in the history
To avoid including a newline at the end, which broke `only_on_channel` comparison.
  • Loading branch information
Kobzol committed Feb 17, 2025
1 parent f35c880 commit 31acbd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ci/citool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ fn main() -> anyhow::Result<()> {
let gh_ctx = load_github_ctx()
.context("Cannot load environment variables from GitHub Actions")?;
let channel = read_to_string(Path::new(CI_DIRECTORY).join("channel"))
.context("Cannot read channel file")?;
.context("Cannot read channel file")?
.trim()
.to_string();

calculate_job_matrix(load_db(jobs_path)?, gh_ctx, &channel)
.context("Failed to calculate job matrix")?;
Expand Down

0 comments on commit 31acbd3

Please sign in to comment.