ci: skip pre-commit workflow on main (#1513)

* ci: skip pre-commit workflow on main

* ci: run pre-commit only on pull requests
This commit is contained in:
Li Jiang
2026-01-25 21:10:05 +08:00
committed by GitHub
parent fc4efe3510
commit a5021152d2

View File

@@ -1,9 +1,7 @@
name: Code formatting name: Code formatting
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the main branch on:
push:
branches: [main]
pull_request: {} pull_request: {}
defaults: defaults: