Skip to content

Commit

Permalink
update try a different gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebPena committed May 7, 2024
1 parent dc5a35f commit d6b2222
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ jobs:
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: ". -l 120"
- name: Annotate diff changes using reviewdog
black_args: "."
- name: Create Pull Request
if: steps.action_black.outputs.is_formatted == 'true'
uses: reviewdog/action-suggester@v1
uses: peter-evans/create-pull-request@v6
with:
tool_name: blackfmt
token: ${{ secrets.GITHUB_TOKEN }}
title: "Format Python code with psf/black push"
commit-message: ":art: Format Python code with psf/black"
body: |
There appear to be some python formatting errors in ${{ github.sha }}. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/black

0 comments on commit d6b2222

Please sign in to comment.