Skip to content

Commit 2193c95

Browse files
authored
[workflows] Only run code formatter on the main branch (#80348)
Modifying a cherry-picked patch to fix code formatting issues can be risky, so we don't typically do this. Therefore, it's not necessary to run this job on the release branches.
1 parent d25022b commit 2193c95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/pr-code-format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Check code formatting"
22
on: pull_request_target
3+
branches:
4+
- main
5+
36
permissions:
47
pull-requests: write
58

0 commit comments

Comments
 (0)