We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad39794 commit 756ebc6Copy full SHA for 756ebc6
.github/workflows/pre-commit.yml
@@ -14,10 +14,12 @@ jobs:
14
pull-requests: write
15
16
steps:
17
- - name: Checkout
+ - name: Checkout repository
18
uses: actions/checkout@v4
19
with:
20
token: ${{ secrets.GITHUB_TOKEN }}
21
+ fetch-depth: 0
22
+ ref: ${{ github.head_ref || github.ref_name }}
23
24
- name: Set up Python
25
uses: actions/setup-python@v4
@@ -34,7 +36,6 @@ jobs:
34
36
pre-commit run --all-files --verbose --hook-stage manual
35
37
38
- name: Commit & push if changed
- id: commit_push
39
run: |
40
git config user.name "github-actions[bot]"
41
git config user.email "github-actions[bot]@users.noreply.github.com"
0 commit comments