Skip to content

Commit 2b5ddb3

Browse files
authored
updated action script
1 parent cce209b commit 2b5ddb3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/black.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Black
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
411

512
jobs:
613
build:
@@ -27,3 +34,6 @@ jobs:
2734
git config --local user.name "GitHub Action"
2835
git add .
2936
git diff-index --quiet HEAD || git commit -m "Format Python code with Black"
37+
- name: Push changes
38+
run: |
39+
git push origin master

0 commit comments

Comments
 (0)