Skip to content

Commit 756ebc6

Browse files
committed
fix: 작업 중인 브랜치 상태에서 push
1 parent ad39794 commit 756ebc6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17-
- name: Checkout
17+
- name: Checkout repository
1818
uses: actions/checkout@v4
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21+
fetch-depth: 0
22+
ref: ${{ github.head_ref || github.ref_name }}
2123

2224
- name: Set up Python
2325
uses: actions/setup-python@v4
@@ -34,7 +36,6 @@ jobs:
3436
pre-commit run --all-files --verbose --hook-stage manual
3537
3638
- name: Commit & push if changed
37-
id: commit_push
3839
run: |
3940
git config user.name "github-actions[bot]"
4041
git config user.email "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)