about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-02-17 12:21:41 +0100
committerJakub Beránek <berykubik@gmail.com>2025-02-17 12:30:02 +0100
commit31acbd3f902da4eba6fe7eaf07cb862ebac9d67c (patch)
tree29f766ed2203cf2d1c159465a4f748cfb2028424 /src
parentf35c88043b6177710f3c762c886810f28dadbe76 (diff)
downloadrust-31acbd3f902da4eba6fe7eaf07cb862ebac9d67c.tar.gz
rust-31acbd3f902da4eba6fe7eaf07cb862ebac9d67c.zip
Trim channel
To avoid including a newline at the end, which broke `only_on_channel` comparison.
Diffstat (limited to 'src')
-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")?;