Skip to content

Commit

Permalink
coco suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Oct 27, 2024
1 parent e7d1132 commit 41ec9f5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,8 @@ jobs:
cache: 'pip' # caching pip dependencies
- run: pip install black==23.12.1

- name: Run black and block if exit code is failure
run: |
black . || exit_code=$? # capture exit code
# If black exits with a non-zero exit code (failure according to docs), exit with the same code
if [ "${exit_code:-0}" -ne 0 ]; then
echo "Black failed with exit code ${exit_code}. Could not finish formatting (code may be invalid)."
exit ${exit_code}
fi
- name: Run black
run: black . # if this fails nothing else will run, this is correct behavior

- name: Suggest changes via comment
uses: parkerbxyz/suggest-changes@v1
Expand Down

0 comments on commit 41ec9f5

Please sign in to comment.