about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/ci/citool/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ci/citool/src/main.rs b/src/ci/citool/src/main.rs
index f0d075d8562..ad9cc8b82a6 100644
--- a/src/ci/citool/src/main.rs
+++ b/src/ci/citool/src/main.rs
@@ -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")?;