Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 11, 2024
1 parent 7f7c118 commit 4fb0ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/gh-workflow-tailcall/src/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ impl Workflow {
fn workflow_cond(&self) -> Context<bool> {

Check warning on line 156 in crates/gh-workflow-tailcall/src/workflow.rs

View workflow job for this annotation

GitHub Actions / Lint

Diff in /home/runner/work/gh-workflow/gh-workflow/crates/gh-workflow-tailcall/src/workflow.rs
let is_main = Context::github().ref_().eq("refs/heads/main".into());
let is_push = Context::github().event_name().eq("push".into());
let cond = is_main.and(is_push);
cond

is_main.and(is_push)
}

fn workflow_event(&self) -> Event {
Expand Down
6 changes: 5 additions & 1 deletion crates/gh-workflow-tailcall/tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ use gh_workflow_tailcall::Workflow;

#[test]
fn generate() {
Workflow::default().auto_release(true).auto_fix(true).generate().unwrap();
Workflow::default()
.auto_release(true)
.auto_fix(true)
.generate()
.unwrap();
}

0 comments on commit 4fb0ac7

Please sign in to comment.