Skip to content

Commit

Permalink
Fix CI on schedule broken by #506 (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 authored Jun 4, 2024
1 parent d8963e6 commit 7a82f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/protocol/crates/schema/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Schema<'static> {
use std::env::VarError::*;
Ok(match var("GITHUB_EVENT_NAME").as_deref() {
Ok("pull_request") => format!("origin/{}", var("GITHUB_BASE_REF")?),
Ok("push") => format!("origin/{}", var("GITHUB_REF_NAME")?),
Ok("push" | "schedule") => format!("origin/{}", var("GITHUB_REF_NAME")?),
Ok(x) => bail!("unexpected GITHUB_EVENT_NAME {x:?}"),
Err(NotPresent) => match var("BASE_REF") {
Ok(x) => x,
Expand Down

0 comments on commit 7a82f34

Please sign in to comment.