Add claude GitHub actions 1774833604709 #137
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Black Formatting | |
| on: [pull_request] | |
| jobs: | |
| black: | |
| # Only run if not from dependabot AND not from a fork | |
| if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork != true }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.sha }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Black Code Formatter | |
| uses: psf/black@stable | |
| with: | |
| options: "--verbose" | |
| src: "." | |
| - name: Commit changes | |
| if: success() | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| id: auto-commit-action | |
| with: | |
| commit_message: "Style fixes by Black" |