Skip to content

Commit 6a41c3f

Browse files
committed
Trim channel
To avoid including a newline at the end, which broke `only_on_channel` comparison.
1 parent 3b5318c commit 6a41c3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ci/citool/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ fn main() -> anyhow::Result<()> {
359359
let gh_ctx = load_github_ctx()
360360
.context("Cannot load environment variables from GitHub Actions")?;
361361
let channel = read_to_string(Path::new(CI_DIRECTORY).join("channel"))
362-
.context("Cannot read channel file")?;
362+
.context("Cannot read channel file")?
363+
.trim()
364+
.to_string();
363365

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

0 commit comments

Comments
 (0)