diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 9778bb4..5421e5e 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -18,5 +18,5 @@ - name: pre-commit uses: liblaf/template/.github/actions/pre-commit@main with: - autofix: true + autofix: ${{ ! github.ref_protected }} token: ${{ secrets.GH_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d98ea90..a6102f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,7 +44,7 @@ types: - text - repo: https://github.com/liblaf/template - rev: main + rev: v1.0.0 hooks: - id: cargo-check - id: cargo-clippy