Skip to content

Commit

Permalink
fix: run autofix.ci on pull requests only (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabify authored Nov 12, 2024
1 parent d4044cd commit c2b239d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: autofix.ci
on:
workflow_call:
pull_request:
push:
branches: ["main"]
# Running this workflow on main branch pushes requires write permission to apply changes.
# Leave it alone for future uses.
# push:
# branches: ["main"]
permissions:
contents: read
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion tachys/src/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ pub trait ToTemplate {
/// The `style` attribute content known at compile time.
const STYLE: &'static str = "";
/// The length of the template.
const LEN: usize = Self::TEMPLATE.as_bytes().len();
const LEN: usize = Self::TEMPLATE.len();

/// Renders a view type to a template. This does not take actual view data,
/// but can be used for constructing part of an HTML `<template>` that corresponds
Expand Down

0 comments on commit c2b239d

Please sign in to comment.