Skip to content

Commit a502115

Browse files
authored
ci: skip pre-commit workflow on main (#1513)
* ci: skip pre-commit workflow on main * ci: run pre-commit only on pull requests
1 parent fc4efe3 commit a502115

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Code formatting
22

33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
4-
on: # Trigger the workflow on push or pull request, but only for the main branch
5-
push:
6-
branches: [main]
4+
on:
75
pull_request: {}
86

97
defaults:

0 commit comments

Comments
 (0)