Skip to content

Commit 0eb427b

Browse files
Switch from action-black to ALActions formatting
`action-black` is broken on the version being used
1 parent 78105ca commit 0eb427b

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/black-action.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,7 @@ jobs:
1313
name: runner / black
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: Check files using the black formatter
18-
uses: rickstaa/action-black@v1.1.7
19-
id: action_black
16+
- uses: SuffolkLITLab/black-formatting@main
2017
with:
21-
black_args: ". --extend-exclude (__init__.py|setup.py)"
22-
- name: Create Pull Request
23-
if: steps.action_black.outputs.is_formatted == 'true'
24-
uses: peter-evans/create-pull-request@v3
25-
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
title: "Format Python code with psf/black push"
28-
commit-message: ":art: Format Python code with psf/black"
29-
body: |
30-
There appear to be some python formatting errors in ${{ github.sha }}. This pull request
31-
uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
32-
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
33-
branch: actions/black
18+
MAKE_PR: true
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)