Skip to content

Commit 1552a63

Browse files
only push conditional on master
1 parent d39832a commit 1552a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pre-commit.yaml

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

0 commit comments

Comments
 (0)