We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4ce3bf + 0a7a68d commit 1ae66eeCopy full SHA for 1ae66ee
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