Skip to content

Commit

Permalink
updated Black code style action due to branch protections rules
Browse files Browse the repository at this point in the history
  • Loading branch information
EDM115 committed Jan 22, 2024
1 parent 6b4e8b4 commit 8a803f6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/black-code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
git config --local user.email ${{ secrets.MAIL }}
git config --local user.name ${{ secrets.USERNAME }}
git add -A
git commit -m "Code style changed to Black at ${d}"
- name: Push commit
uses: ad-m/[email protected]
git commit -m "Code style changed to Black at ${d}" || echo "No changes to commit"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
force: true
directory: "."
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Apply Black code style"
title: "Apply Black code style"
body: |
This pull request is auto-generated by the Black Code Formatter GitHub action.
Please review the changes before merging.
labels: style
branch: format-code-${{ github.run_number }}
assignees: EDM115
reviewers: EDM115
draft: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8a803f6

Please sign in to comment.