diff --git a/.github/workflows/blackformatter.yml b/.github/workflows/blackformatter.yml index c4d91e7..64b422b 100644 --- a/.github/workflows/blackformatter.yml +++ b/.github/workflows/blackformatter.yml @@ -25,11 +25,14 @@ jobs: - name: Run Black run: black . - + - name: Push changes back to the pull request branch uses: gr2m/create-or-update-pull-request-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + title: "Formatting" + body: "Formatted python files with black" + branch: "main" author: "github-actions[bot] " commit-message: "Formatted with Black per repo requirements" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}