Skip to content

Commit 91d9be4

Browse files
committed
Don't format main but all others
1 parent 320f037 commit 91d9be4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/format.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Uses Black to reformat the Python code on the main branch.
1+
# Uses Black to reformat the Python code on the all but the main branch.
22

33
name: Format
44

55
on:
66
push:
7-
branches: [ main ]
7+
branches:
8+
- '**' # matches every branch
9+
- '!main' # excludes master
810

911
permissions:
1012
contents: write

0 commit comments

Comments
 (0)