fix: run autofix.ci on pull requests only (#3238)

This commit is contained in:
Saber Haj Rabiee 2024-11-12 14:16:34 -08:00 committed by GitHub
parent d4044cd5a1
commit c2b239dba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -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:

View file

@ -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