mirror of
https://github.com/microsoft/FLAML.git
synced 2026-02-09 02:09:16 +08:00
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:
4
.github/workflows/pre-commit.yml
vendored
4
.github/workflows/pre-commit.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Code formatting
|
||||
|
||||
# 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
|
||||
push:
|
||||
branches: [main]
|
||||
on:
|
||||
pull_request: {}
|
||||
|
||||
defaults:
|
||||
|
||||
Reference in New Issue
Block a user