We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d839ae3 commit 0a7a68dCopy full SHA for 0a7a68d
1 file changed
.github/workflows/pre-commit.yml
@@ -2,6 +2,8 @@ name: pre-commit Checks
2
on: [ push, pull_request ]
3
jobs:
4
pre-commit:
5
+ # 添加条件判断,排除main分支的push事件
6
+ if: github.event_name != 'push' || github.ref != 'refs/heads/main'
7
runs-on: ubuntu-latest
8
steps:
9
- uses: actions/checkout@v5
0 commit comments