Skip to content

Commit 6023284

Browse files
restore initial
1 parent b9ad4c1 commit 6023284

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: pre-commit
22
on:
33
push:
4-
branches:
5-
- main
6-
- master
4+
branches-ignore:
5+
- 'master'
6+
- 'main'
77
pull_request:
88
types: [opened, synchronize, reopened, ready_for_review]
99

@@ -46,7 +46,7 @@ jobs:
4646
git commit -m "pre-commit" -a
4747
fi
4848
- name: Push changes
49-
if: failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
49+
if: failure() && startsWith(github.ref, 'refs/heads')
5050
uses: ad-m/github-push-action@master
5151
with:
5252
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)