Skip to content

Commit

Permalink
test checkout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamtaranto committed Dec 26, 2024
1 parent e622804 commit 9221608
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/Black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
Expand Down Expand Up @@ -44,6 +45,8 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Style fixes by Black'
commit_options: '--no-verify'
file_pattern: '*.py'

# For PRs from forks - run Black in check mode and comment
- name: Run Black in check mode (fork PRs)
Expand Down

0 comments on commit 9221608

Please sign in to comment.